I believe that wheel has already been invented ... Take a look at the PDS command, available from the CBTTAPE. It maps load modules and lists information about the compiler that was used to create this program. So, no need to write your own program.
Regards, Ulrich Krueger -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Patrick Roehl Sent: Wednesday, January 11, 2012 2:25 PM To: [email protected] Subject: Enterprise COBOL Load Module Dissection Given a load library and a list of member names, I want to be able to perform these steps in a batch assembler program: 1) Load a program load module into storage 2) Determine if the program is COBOL or something else (the only other thing it would likely be is assembler) 3) If COBOL, access the compile timestamp. From casual observation this appears to be in the form of YYYYMMDDHHSS and prefixed with the PROGRAM-ID. I assume a standard LOAD can be used to load the module into storage for inspection. The questions are: 1) Is there a sure-fire way to determine if the loaded program is COBOL? 2) How do I navigate to the COBOL compile timestamp? The programs only need to be identified as Enterprise COBOL or not. Thanks for any tips, pointers, and references you can provide. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

