Reputation: 16928
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
Upvotes: 3
Views: 5887
Reputation: 10765
Roland Schiradin's COBANAL is free, or there's the commercial product Edge Portfolio Analyzer
Upvotes: 1
Reputation: 1
There is quick mainframes tutorials and compiler options at link http://techpalli.blogspot.com/p/mainframes.html
Upvotes: 0
Reputation: 61016
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" <[email protected]> * FILE 552
Something in there may be useful ...
Upvotes: 3