Search code examples
cobolmainframezos

Determine compile options from load module - IBM Enterprise COBOL


How can I determine the compile options used to compile an IBM Enterprise COBOL program by looking at the load module? When a dump is issued they are listed as follows:

Compile Options for PROGXX:                                                 
  ADV, ARITH(COMPAT), AWO, NOCICS, CODEPAGE(01140), DATA(31), NODATEPROC,   
  NODBCS, NODLL, NODYNAM, NOEXPORTALL, NOFASTSRT, INTDATE(LILIAN),          
  NUMPROC(NOPFD), NOOPTIMIZE, OUTDD(SYSOUT), PGMNAME(COMPAT), RENT, RMODE(AN  
  NOSQL, SQLCCSID, SSRANGE, NOTEST, NOTHREAD, TRUNC(OPT), XMLPARSE(XMLSS),   
  YEARWINDOW(1900), ZWB                                                     

so I presume they must be tucked away somewhere in the load module.

I want to scan a load library checking that each load was compiled with some specific options to ensure compliance to shop standard (eg. SSRANGE).

Any ideas would be appreciated.

Update

I have since written an LE Cobol load module scanning program which does this job and a bit more besides. If you are interested check out: http://www3.sympatico.ca/bredam/LoadInfo.html


Solution

  • Perhaps this is a start. From the CBT Tape:

    //*                                                                 *   FILE 551
    //***FILE 552 is from Marc Manuel, and contains a COBOL 2 and       *   FILE 552
    //*           COBOL/MVS analysis program.  This program will list   *   FILE 552
    //*           the compile options of COBOL load modules.            *   FILE 552
    //*                                                                 *   FILE 552
    //*           email:  "MANUMAN" <manuman@club-internet.fr>          *   FILE 552  
    

    Something in there may be useful ...