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 do you know the version of COBOL just by viewing code

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

New User


Joined: 22 Jan 2008
Posts: 2
Location: hyderabad

PostPosted: Tue Jan 22, 2008 3:58 pm    Post subject: how do you know the version of COBOL just by viewing code
Reply with quote

Hi all

Is there a way by which i can know which version of COBOL it is just looking at the COBOL code.If not, then is there a standard practice/procedure to know the COBOL version normally in the industry.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Jan 22, 2008 4:20 pm    Post subject:
Reply with quote

Manasa,

Quote:
Is there a way by which i can know which version of COBOL it is just looking at the COBOL code

No, unless you are a COBOL expert across versions & flavours.

Quote:
If not, then is there a standard practice/procedure to know the COBOL version normally in the industry.

Check your compiler messages.
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: Tue Jan 22, 2008 9:47 pm    Post subject:
Reply with quote

Hello,

Most COBOL code will work properly on multiple versions of COBOL.

When you compile a program, the compiler generates the information you want. The first printed line of a compile should look like:
Quote:
PP 5655-G53 IBM ENTERPRISE COBOL FOR Z/OS 3.4.1
depending on which compiler you are using.
Back to top
View user's profile Send private message
anv2005

New User


Joined: 14 Jul 2005
Posts: 44
Location: US

PostPosted: Tue Jan 22, 2008 9:55 pm    Post subject:
Reply with quote

Browse your load module and look for COBOL compiler's product ID number, e.g. 5655G53.

The following IBM page relates the COBOL compiler product ID and product name:

http://www-03.ibm.com/servers/eserver/zseries/zos/le/history/cobmvs.html

Beware, that the target load module may consists of many separately compiled COBOL programs. These programs could have been compiled using different COBOL compilers.

I hope this helps.
Back to top
View user's profile Send private message
anv2005

New User


Joined: 14 Jul 2005
Posts: 44
Location: US

PostPosted: Tue Jan 22, 2008 9:58 pm    Post subject:
Reply with quote

FYI: There is a way to ascertain for sure what COBOL, PLI or IBM LE compiler was used to prepare your program at run-time or during debugging. You have to traverse the IBM LE control blocks and program headers. Our software package does just that.
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 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