Re: Supress Option List



bfwd wrote:

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?



I assume you are referring to IBM mainframe COBOL, such as COBOL for z/OS and OS/390.

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.
.




Relevant Pages

  • Possible ARM Compiler Issue
    ... Following that listing is the assembler section ... CODE, ARM, SELECTION=1; comdat noduplicate ... ; Function compile flags: /Ogsy ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why doesnt this work
    ... processed listing if you can't see the problem. ... Copy/paste the compile command that gets executed when you run make to the ... will contain preprocessed code. ...
    (comp.os.lynx)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an ...
    (comp.os.vms)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... Then I could show the people in Unixland what I am looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an enormous help while debugging; it lists every variable and the line number of each statement that references it. ...
    (comp.os.vms)
  • Re: Supress Option List
    ... PROBABLY means that your shop has other problems. ... that every listing is ONE page longer? ... >>IGYCRCTL lists all the options in effect for compile. ...
    (comp.lang.cobol)