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

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.
vinigim
 
Posts: 2
Joined: Fri Oct 30, 2020 3:09 am
Has thanked: 0 time
Been thanked: 0 time

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
User avatar
prino
 
Posts: 611
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 27 times

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?
vinigim
 
Posts: 2
Joined: Fri Oct 30, 2020 3:09 am
Has thanked: 0 time
Been thanked: 0 time

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.
steve-myers
Global moderator
 
Posts: 2085
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 235 times

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: 20
Joined: Sun Aug 16, 2009 11:07 pm
Location: St. Cloud, Minnesota
Has thanked: 0 time
Been thanked: 1 time

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.
chaat
 
Posts: 20
Joined: Sun Aug 16, 2009 11:07 pm
Location: St. Cloud, Minnesota
Has thanked: 0 time
Been thanked: 1 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post