Discussion:
list of cobol load modules and their cobol version
Add Reply
Roy Reynolds
2017-08-07 02:56:32 UTC
Reply
Permalink
Raw Message
I need to provide a list of cobol modules and the Cobol version they were compiled with from a REXX program. There are many large PDS libs to process. These may include non-Cobol load modules so I need to be able to identify which are Cobol.
I know I can get the member list for each PDS into a REXX program and make AMBLIST display a lot of good information but I'm not sure what to look for in the output and what will identify what I need: Cobol Version used and date compiled. Is the Cobol version identified by hex strings or codes that aren't readily apparent?
Can anyone suggest a way to best approach this? The process must not require a third party tool we probably don't have and probably can't buy. TIA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Edward Finnell
2017-08-07 03:52:48 UTC
Reply
Permalink
Raw Message
Have you looked at COBANAL on CBT(File 321)?


In a message dated 8/6/2017 9:58:02 P.M. Central Daylight Time,
***@UCOP.EDU writes:

Can anyone suggest a way to best approach this? The process must not
require a third party tool we probably don't have and probably can't buy. TIA



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Farley, Peter x23353
2017-08-07 14:05:06 UTC
Reply
Permalink
Raw Message
I second that recommendation. COBANAL is an excellent tool. The SUMMARY listing output is exactly what you want. I have used this extensively on very large load libraries (both PDS and PDSE) and it works very well.

COBANAL identifies most all forms of COBOL, PL/1,, C/C++, Assembler, FORTRAN, RPG and EZTrieve. Highly recommended.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-***@LISTSERV.UA.EDU] On Behalf Of Edward Finnell
Sent: Sunday, August 06, 2017 11:54 PM
To: IBM-***@LISTSERV.UA.EDU
Subject: Re: list of cobol load modules and their cobol version

Have you looked at COBANAL on CBT(File 321)?


In a message dated 8/6/2017 9:58:02 P.M. Central Daylight Time,
***@UCOP.EDU writes:

Can anyone suggest a way to best approach this? The process must not
require a third party tool we probably don't have and probably can't buy. TIA

--

This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Mike LaMartina
2017-08-07 04:38:16 UTC
Reply
Permalink
Raw Message
Would AMBLIST LISTIDR be of help?

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-***@LISTSERV.UA.EDU] On Behalf Of Roy Reynolds
Sent: Sunday, August 06, 2017 7:58 PM
To: IBM-***@LISTSERV.UA.EDU
Subject: list of cobol load modules and their cobol version

I need to provide a list of cobol modules and the Cobol version they were compiled with from a REXX program. There are many large PDS libs to process. These may include non-Cobol load modules so I need to be able to identify which are Cobol.
I know I can get the member list for each PDS into a REXX program and make AMBLIST display a lot of good information but I'm not sure what to look for in the output and what will identify what I need: Cobol Version used and date compiled. Is the Cobol version identified by hex strings or codes that aren't readily apparent?
Can anyone suggest a way to best approach this? The process must not require a third party tool we probably don't have and probably can't buy. TIA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Nick
2017-08-07 09:45:52 UTC
Reply
Permalink
Raw Message
I can offer you a utility type program
It "reads" in a PDS/PDSE containing load modules/program objects and it uses the DESERV and IEWBIND API"s to list all csects in the objects and what compiler/product was used to build it.

This what your looking for? Shout if it is and I can mail you either source and or load offline.

Should be easy to wrap in a REXX.
again input is a loadlib
output is written to a DD (FB80) in format

first line for a program is LMODNAME datetime and userid amode rmode
Followed by one line for each csect it contains and it compiler product.

The utility program just contains an array of IBM product numbers - I dont cater for all!
it also contains a list of exclusion csects you dont want reported on
see below

Example output.....

MAXSTOR 160926160926ABNB529J 31ANY
MAXSTOR MAXSTOR 160926160926HL ASM V2 31 24
MYCODE 160302160302ABNB529Y 31ANY
MYCODE .... 160302160302C Z/OS R2 MIN 24
MYCODE TIEB 160302160302C Z/OS R2 MIN 24
MYCODE EDCINPL 110318160302HL ASM V2 MIN 24
NEILTIME 170724170724ABNB529J 31ANY
NEILTIMENEILTIME170724170724HL ASM V2 31 24
NHM997D 170203170203ABNB529J 31ANY
NHM997D NHM997D 170203170203Ent Cobol V6 MIN 24
NHM997D DLM010 120514170203HL ASM V2 MIN 24
NHM997D DLM010 170203 .DLM010 MIN 24
NHM997DE 170130170130ABNB529J 31ANY
NHM997DENHM997DE170130170130Ent Cobol V6 MIN 24
NICKTEST 170504170504ABNB529N 31ANY
NICKTESTNICKTEST170504170504Ent Cobol V4 MIN 24
NICKTESTNICKTEST 170504ä.NICKTEST MIN 24
NICKTSTA 170504170504ABNB529N 31ANY
NICKTSTANICKTSTA170504170504Ent Cobol V4 MIN 24
NICKTSTANICKTSTA 170504ä.NICKTSTA MIN 24
NICKTSTB 170504170504ABNB529N 31ANY
NICKTSTBNICKTSTB170504170504Ent Cobol V4 MIN 24
NICKTSTBNICKTSTB 170504ä.NICKTSTB MIN 24

Product codes and exclusion arrays

000468 PROD_MAX DC F'24' LUCKY FOR SOME
000469 PROD_IDS DC CL28'360SAS037 FORTRAN ' 1
000470 DC CL28'40CB1 COBOL ' 2
000471 DC CL28'566528408 HEWLH096 ' 3
000472 DC CL28'566895801 COBOL II ' 4
000473 DC CL28'566896201 ASM H V2 ' 5
000474 DC CL28'569623400 HL ASM V2 ' 6
000475 DC CL28'5734-F02 FORTRAN ' 7
000476 DC CL28'5734-PL1 PL/I ' 8
000477 DC CL28'5734AS100 ASM H V1.5 ' 9
000478 DC CL28'5740CB103 OS/VS COBOL ' 10
000479 DC CL28'5741SC103 ASM F ' 11
000480 DC CL28'5752SC104 IEWL ' 12
000481 DC CL28'5655G5300 ENT COBOL FOR Z/0S' 13
000482 DC CL28'566895807 COBOL/370 ' 14
000483 DC CL28'5648A2500 COBOL FOR OS/390 ' 15
000484 DC CL28'5688040 C/370 COMPILER V1 ' 16
000485 DC CL28'5688187 C/370 COMPILER V2 ' 17
000486 DC CL28'5688216 SAA AD/CYCLE C/370' 18
000487 DC CL28'5645001 C/C++ OS/390 R2 ' 19
000488 DC CL28'5647A01 C/C++ OS/390 R4 ' 20
000489 DC CL28'5694A01 C Z/OS R2 ' 21
000490 DC CL28'5655G5300 Ent Cobol V3 ' 22
000491 DC CL28'5655S7100 Ent Cobol V4 ' 23
000492 DC CL28'5655EC6 Ent Cobol V6 ' 24
000493 EXCL_MAX DC F'4'
000494 EXCL_LIS DC XL2'0003',CL3'CEE'
000495 DC XL2'0003',CL3'IGZ'
000496 DC XL2'0004',CL4'IEWB'
000497 DC XL2'0002',CL2'@@'



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Roy Reynolds
2017-08-10 19:11:24 UTC
Reply
Permalink
Raw Message
Many thanks for your recommendations! Roy

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
scott Ford
2017-08-12 22:49:35 UTC
Reply
Permalink
Raw Message
Does FileManager also provide this information ?
Post by Roy Reynolds
Many thanks for your recommendations! Roy
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
--
Scott Ford
IDMWORKS
z/OS Development

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to ***@listserv.ua.edu with the message: INFO IBM-MAIN
Loading...