Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How COBOL on UNIX is different from Mainframe COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
satya123
Warnings : 1

New User


Joined: 18 Aug 2006
Posts: 57

PostPosted: Thu May 14, 2009 4:05 pm    Post subject: How COBOL on UNIX is different from Mainframe COBOL
Reply with quote

Hi ,

Can anybody mention how COBOL on UNIX is different from Mainframe COBOL ????

Whether sytax and file programs are same as mainframe cobol???

Regards
satya123
Back to top
View user's profile Send private message

Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu May 14, 2009 4:32 pm    Post subject: Reply to: COBOL on UNIX
Reply with quote

Hi,

Quote:
Can anybody mention how COBOL on UNIX is different from Mainframe COBOL ????


By COBOL on UNIX, are you refering to COBOL programs maintained on a UNIX server?

What is the version of cobol that you are using on UNIX?

Techies,

Is it correct to use terms like "MAINFRAME COBOL" or "COBOL on UNIX"???
Back to top
View user's profile Send private message
Jonathan Sayles

New User


Joined: 03 May 2009
Posts: 3
Location: N.C./U.S.

PostPosted: Thu May 14, 2009 4:59 pm    Post subject: All COBOLs are different
Reply with quote

Hi Satya - While COBOL is extremely portable in the whole, there are differences and platform-dependencies between some elements - Mainframe, UNIX/AIX and Windows.

These are typically in the ENVIRONMENT DIVISION, and/or especially for things like return-codes from I/O on different platforms, etc.

One major difference to consider AIX ...vs... mainframe COBOL is that the data on AIX will be in ASCII while on the mainframe it's EBCDIC. This will affect things like: SORT, MERGE, LE calls and even things as subtle as IF statements - when you're comparing for < or > with mixed Alphanumerics.

Here's a link to the IBM AIX documentation library that includes the language reference:

http://www-01.ibm.com/software/awdtools/cobol/aix/library/
Back to top
View user's profile Send private message
satya123
Warnings : 1

New User


Joined: 18 Aug 2006
Posts: 57

PostPosted: Fri May 15, 2009 8:50 am    Post subject:
Reply with quote

Thanx for the prompt reply....

I mean MICRO FOCUS on UNIX.. Can anybody give some sample programs or link for study materials.

Thanx & Regards
Satya123
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 15, 2009 9:09 am    Post subject:
Reply with quote

Hello,

Last time i used MicroFocus COBOL, it included samples.

You mioght look here:
http://supportline.microfocus.com/examplesandutilities/index.asp

If you know how to program cobol on the mainframe, you know how to program cobol on unix (basically). . . If you have lots of common routines on the mainframe, you may need to look for alternatives in unix.

FWIW, i was the project leader of a team that migrated the entire application inventory from 4 MVS systems to unix servers. Other than some changes to the SELECT/ASSIGN/FD, the source compiled correctly with the MicroFocus compiler. We did have to deal with packed-decimal and binary issues as well as collating sequence issues. We were fortunate that all of the files were qsam - all random access (bdam and vsam) had previously been converted to database.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 15, 2009 9:36 am    Post subject:
Reply with quote

Hello,

One of the keys to our success is that all of the code was initially migrated "as is".

No changes/enhancements were implemented during the migration. We decided that the risk of confusion was too great. If something ran differently, we did not want to deal with determining if the difference was a change or with running in the unix environment.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 15, 2009 1:03 pm    Post subject:
Reply with quote

In a very raw sense, COBOL is runs on Mainframe, AS/400, Servers like VS-COBOL/Cobol400.
Microfocus COBOL runs on UNIX machine with Character based Accept/Display commands.

Differences depend on the specific level of MF cobol and the specific level of COBOL you are comparing to. Differences are to numerous to go into, as said above.

If you have a reference manual for your 'other' cobol, you can go to microfocus.com and look at the Cobol you are using. The manual will tell you what is specific to some other level.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us