IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Find what compiler version was used to compile the program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Jul 20, 2011 12:10 am
Reply with quote

Hi,

We want to find out what compiler version was used to compile our COBOL programs. For example, we can compile COBOL programs with
VS COBOL, COBOL II etc...

We would like to find out which are compiled with VS COBOL and we want to compile all these with COBOL II compiler.

Is there any way to find out the compiler name we have compiled?

I appreciate your help.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 20, 2011 12:13 am
Reply with quote

You can see it from a compilation listing !
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jul 20, 2011 12:16 am
Reply with quote

Do you mean, from a load or object library you want to look at previously compiled programs and see what compiler was used?
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Jul 20, 2011 12:19 am
Reply with quote

Thanks Enrico. We have load library for all the compiled COBOL programs. When I am seeing the load module of that particular program, I am not able see any word like VS COBOL or COBOL II.

Is this the right place to check or is there any other way to check?
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Jul 20, 2011 12:23 am
Reply with quote

Bill,

Yes, I want to check from Load Library to enquire which compiler was used to compile the program?

If this is not the right way can you suggest me how can we find?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Jul 20, 2011 12:28 am
Reply with quote

I think that this is what you want.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Jul 20, 2011 12:58 am
Reply with quote

Thanks Akatsukami. This is very useful.
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 1:31 am
Reply with quote

The below jcl can be run to give you the csect translator codes in an easy to read format.
Code:
//LMOD   EXEC PGM=AMBLIST                                     
//SYSPRINT DD SYSOUT=*                                         
//LMODIN   DD DISP=SHR,DSN=load_library
//SYSIN    DD *                                               
 LISTIDR DDN=LMODIN,MEMBER=??????                           
Back to top
View user's profile Send private message
jerryte

Active User


Joined: 29 Oct 2010
Posts: 202
Location: Toronto, ON, Canada

PostPosted: Wed Jul 20, 2011 6:32 pm
Reply with quote

AMBLIST is an IBM supplied utility. You can read about it in the z/OS MVS Diagnosis: Tools and Services Aids - Chapter 15
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Compile rexx code with jcl CLIST & REXX 6
Search our Forums:

Back to Top