COBOL

COBOL

COBOL

COBOL is responsible for the efficient, reliable, secure, and unseen day-to-day operations of the world's economy.

 View Only
  • 1.  New compilation option "CONDCOMP(SKIPSRC)" and MDECK(NOCOMPILE)

    Posted Tue November 01, 2022 06:28 AM
    Hi,


    The September 2022 version of COBOL V6R3 introduces a new compilation option CONDCOMP(SKIPSRC) which allows to eliminate lines excluded by conditional compilation.

    I do not have this version yet, especially since I am waiting for the integration of this option in COBOL V6R4 or COBOL V6R2, but I would like to know how CONDCOMP(SKIPSRC) option behaves in the presence of the MDECK(NOCOMPILE) option to produce a COBOL source with COPYBOOKs expansion and conditional compilation processing: are the lines excluded by the conditional compilation also excluded from the source produced on SYSMDECK?

    Incidentally, the treatment of conditional compilation in the presence of the MDECK(NOCOMPILE) option could be more detailed in the documentation for this option.

    Thanks.

    ------------------------------
    Denis FALLAI
    ------------------------------


  • 2.  RE: New compilation option "CONDCOMP(SKIPSRC)" and MDECK(NOCOMPILE)

    Posted Fri November 04, 2022 09:09 AM
    Hi Dennis, 

    When CONDCOMP(SKIPSRC) is in effect, source lines excluded by conditional compilation processing will be absent from both the listing and the generated MDECK output file. This means that when CONDCOMP(SKIPSRC) and MDECK(NOCOMPILE) are both in effect, you will find source lines excluded by conditional compilation absent from the SYSMDECK as opposed to the commented-out source lines found when CONDCOMP(NOSKIPSRC) is in effect. 

    Our documentation on CONDCOMP will be amended to clearly state this.
    Hope this helps.

    ------------------------------
    Jordan Gillette
    ------------------------------



  • 3.  RE: New compilation option "CONDCOMP(SKIPSRC)" and MDECK(NOCOMPILE)

    Posted Mon November 07, 2022 05:41 AM

    Hi,

    Perfect, this is the behavior I expected.

    Thanks.



    ------------------------------
    Denis FALLAI
    ------------------------------