Find the version of a cobol program through its load module

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS
vinigim
Posts: 2
Joined: Fri Oct 30, 2020 3:09 am
Skillset: assembler programmer
Referer: At work

Find the version of a cobol program through its load module

Postby vinigim » Fri Oct 30, 2020 3:16 am

I need to know if the cobol program is already in a version 6.

User avatar
prino
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
Referer: Google
Location: Vilnius, Lithuania
Contact:

Re: Find the version of a cobol program through its load mod

Postby prino » Fri Oct 30, 2020 3:53 pm

Use AMBLIST.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy

vinigim
Posts: 2
Joined: Fri Oct 30, 2020 3:09 am
Skillset: assembler programmer
Referer: At work

Re: Find the version of a cobol program through its load mod

Postby vinigim » Fri Oct 30, 2020 9:50 pm

I know how to use amblist in a jcl.. do you know if i can implement amblist within an assembler program to find the version online?

steve-myers
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Skillset: Assembler, JCL, utilities
Referer: zos.efglobe.com

Re: Find the version of a cobol program through its load mod

Postby steve-myers » Tue Nov 03, 2020 2:21 pm

No. You must analyze the AMBLIST printed output. I have written code to directly analyze IDR data (the data AMBLIST formats) in load modules; the code is complex because the IDR data references CESD data in the load module and IDR data has serious Y2K issues. Some years ago I thought about program objects, but none of the load module code could be adopted to program objects, so I never went beyond the study, particularly given the few program objects some years ago.

No IDR data is loaded when the system loads a load module or program object. I understand some Cobol compilers insert data as to the Cobol compiler used to compile the program into the object code. There may be discussion about locating and retrieving this data in old postings either here or in the Cobol section in http://ibmmainframes.com.

chaat
Posts: 27
Joined: Sun Aug 16, 2009 11:07 pm
Skillset: cobol, db2, application performance tuning
Referer: SEARCH
Location: St. Cloud, Minnesota

Re: Find the version of a cobol program through its load mod

Postby chaat » Fri Nov 06, 2020 10:50 am

you may want to look at http://www.cbttape.org and download file 321.

you will also need to download the xmit manager to extract the *.xmi file in the 321 file above.

Roland Schiradin is very helpful and may be able to help you.

chaat
Posts: 27
Joined: Sun Aug 16, 2009 11:07 pm
Skillset: cobol, db2, application performance tuning
Referer: SEARCH
Location: St. Cloud, Minnesota

Re: Find the version of a cobol program through its load mod

Postby chaat » Sat Nov 07, 2020 8:40 am

From Roland's CBT file 321

If you like to get the newest Version please contact
Roland(at)Schiradin.de

I did contact Roland some years ago when my employer was upgrading to Enterprise COBOL 5.3 and later to 6.2, at that time he supplied a version which can process PDSE's and analyze for COBOL 5.2 & 5.3

I would guess that he probably has a version which supports the current version of the IBM Enterprise COBOL compiler.


  • Similar Topics
    Replies
    Views
    Last post