Hi Patrick,

If the machine you are running has the IBM Debug Tool you can use that to
determine the compilers used to compile each CSECT in each load module in a
PDS. Look in the IBM Debug Tool Users Guide (V11) in Appendix G.  It gives
a lot of information. You can then use REXX or CLISTs to strip out what you
don't want.

Your note makes it sound like all load modules are stand alone. There can
be many load modules linked together to make one load module and there can
be load modules compiled with different compilers within. Your program
would have to search through all of them. Not an easy task.


The postings on this site are my own and don't necessarily represent IBM's
positions, strategies or opinions.

Thank You,

Paul Strauss

Integrated Technology Delivery, Global Services, IBM
L0DB z/OS MVS/Program Products/Security
150 Kettletown Rd.
Southbury, CT 06488
(203) 272-2758
[email protected]


|------------>
| From:      |
|------------>
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
  |Patrick Roehl <[email protected]>                                    
                                                                   |
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                         
                                                                   |
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
  |01/11/2012 05:28 PM                                                          
                                                                   |
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
  |Enterprise COBOL Load Module Dissection                                      
                                                                   |
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by:   |
|------------>
  
>------------------------------------------------------------------------------------------------------------------------------------------------|
  |IBM Mainframe Discussion List <[email protected]>                         
                                                                   |
  
>------------------------------------------------------------------------------------------------------------------------------------------------|





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

Reply via email to