Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Diff b/w PC cobol & Mainframe COBOL?

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

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Mon Feb 23, 2004 8:55 am    Post subject: Diff b/w PC cobol & Mainframe COBOL?
Reply with quote

Can anybody tell me some major differences b/w PC cobol and mainframe cobol? icon_question.gif icon_question.gif icon_question.gif
Back to top
View user's profile Send private message

mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1202
Location: India

PostPosted: Tue Feb 24, 2004 8:38 pm    Post subject: Re
Reply with quote

Dear priya,

PC COBOL Compilers uses ASCII collating sequence while Mainframe COBOL uses EBCDIC coding format. This is the major difference.

If you need the answer in depth, please let us know your PC Compiler...
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 151
Location: Tokyo, Japan

PostPosted: Wed Feb 25, 2004 8:52 am    Post subject:
Reply with quote

First of all,
1. "PC" Cobol runs on PC; mainframe Cobol runs on mainframes.

2. Mainframe Cobol lately is provided by IBM for the IBM mainframes and, I believe, by Unisys for the Unisys mainframes. "PC" Cobol is provided by a fairly large variety of vendors.

As a side note on alphanumeric comparsions, be aware of the collating sequence (called the hierarchy of the comparison) between a mainframe and another platform. On EBCDIC machines special characters are less than letters which are less than numbers; on ASCII machines, some special characters are less than numbers which are less than some additional special characters which are less than letters. The difference is worth mentioning if you are moving source code but not worth dwelling upon.

I am not sure but most probably CICS and other online concept is not applicable in PC COBOL.
Experts, if I am wrong, please correct me.

Some verbs are used differently -
ACCEPT is used to accept data from Screen in PC-COBOL and from SYSIN card in Mainframe-COBOL.
Similarly, DISPLAY displays data in screen in PC-COBOL but displays data in SYSOUT in Mainframe.

Regards,
Sandip.
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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us