Re: Supress Option List
- From: Colin Campbell <cmcampb@xxxxxxxxxxxx>
- Date: Mon, 22 Aug 2005 23:01:34 -0700
bfwd wrote:
I assume you are referring to IBM mainframe COBOL, such as COBOL for z/OS and OS/390.IGYCRCTL lists all the options in effect for compile. For us, this list will never change. Is there a way to suppress this option listing so the resulting source listing begins with the IDENTIFICATION DIVISION?
It seems pretty unlikely that the option list would NEVER change.
Doesn't anyone in your shop compile for testing, as opposed to production?
Will you never need to see the generated code for a program (LIST vs. OFFSET)?
Will you always (or never) compile programs for 31-bit mode execution and shared use under IMS or CICS?
Will there never be a time when you want to use either the CICS or SQL pre-processor/compiler?
Will you never write any international applications (which might use different currency symbols)?
Do you always (or never) use extended arithmetic?
Will you never need to check that a program meets the applicable COBOL standard?
Is there no chance that you would ever want to switch between ANSI and Lillian date formats?
I could go on....
I hope you have made sure that the options such as BUFSIZE, COMPILE, NUMPROC, OPTIMIZE, TEST, and the like have been optimized to provide the best compiler and run unit performance, and the most useful output in case of an abnormal termination.
Bill Klein's response that you could write a PRTEXIT routine to control what parts of the listing actually get printed is true; of course, that would change the option list when it is in use.
Another simple option is to write the listing to a temporary data set, and write a simple program to read that, and omit the portions of the listing you don't want to see.
If you use a tool such as CA-Endevor to install your application programs, it is likely that you'll have different compiles for batch programs, IMS transactions, CICS transactions, 31-bit programs, etc, with different options. Having the options listed would be one way to check that a program was compiled the right way.
.
- Follow-Ups:
- Re: Supress Option List
- From: William M. Klein
- Re: Supress Option List
- From: bfwd
- Re: Supress Option List
- References:
- Supress Option List
- From: bfwd
- Supress Option List
- Prev by Date: Re: Cobol Compiler
- Next by Date: Re: Cobol Compiler
- Previous by thread: Re: Supress Option List
- Next by thread: Re: Supress Option List
- Index(es):
Relevant Pages
|