Check out CBT file 321, program COBANALZ. It has a lot of (assembler) code to poke around inside a loaded module to try to determine the programming language in which it was written, for languages from MVT days to the present.
For some of the oldest load modules it isn't necessarily easy to figure out which compiler and compiler level produced the load module. Anything produced by an LE-based compiler isn't too hard. HTH Peter > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Patrick Roehl > Sent: Wednesday, January 11, 2012 5: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. -- 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 [email protected] with the message: INFO IBM-MAIN

