Page 1 of 1

Find the version of a cobol program through its load module

PostPosted: Fri Oct 30, 2020 3:16 am
by vinigim
I need to know if the cobol program is already in a version 6.

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

PostPosted: Fri Oct 30, 2020 3:53 pm
by prino
Use AMBLIST.

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

PostPosted: Fri Oct 30, 2020 9:50 pm
by vinigim
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?

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

PostPosted: Tue Nov 03, 2020 2:21 pm
by steve-myers
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.

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

PostPosted: Fri Nov 06, 2020 10:50 am
by chaat
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.

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

PostPosted: Sat Nov 07, 2020 8:40 am
by chaat
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.