Endevor

Expand all | Collapse all

COBOL compiler options

  • 1.  COBOL compiler options

    Posted 05-09-2018 05:03 PM

    looks like a cool option instead of putting COBOL compiler options on the PARM statement.  This works for COBOL 6.1, you'd have to test it for the version of COBOL you're on.  

     

    //COMPILE EXEC PGM=***,PARM='OPTFILE'                    

    //STEPLIB  DD ...                  

    //SYSLIB   DD ...                               

    //SYSIN    DD ...      

    //SYSOPTF  DD *                                                        

     MAP,LIST,XREF,ARCH(11),SSRANGE,OPT(0),RENT,DATA(31),RMODE(ANY)        

      

    SYSOPTF CAN BE A FILE – THERE ARE NO CHARACTER LIMITS WITH SYSOPTF



  • 2.  Re: COBOL compiler options

    Posted 03-14-2019 09:56 AM

     



  • 3.  Re: COBOL compiler options

    Posted 05-10-2018 08:44 AM

    So.... COBOL 6.1 is catching up to CONPARMX?



  • 4.  RE: COBOL compiler options

    Posted 09-10-2021 05:03 PM
    Hi Philip
    do you know in which manual I can read  more about this SYSOPTF option?

    I'm running out of space on the parm statement and there are a lot of compile option that we would like to code for testing.

    Thanks in advance.  Diego.


  • 5.  RE: COBOL compiler options

    Posted 09-13-2021 07:52 AM
    Hi Diego,

    Here's a good reference:

    http://www-01.ibm.com/support/docview.wss?uid=swg27036733

    Regards,

    Phil



    ------------------------------
    Phil Gineo
    Senior Systems Engineer
    Aetna / CVS Health
    Hartford Connecticut USA
    ------------------------------



  • 6.  RE: COBOL compiler options

    Posted 09-14-2021 08:45 AM
    Don't forget about Endevor's builtin ability using CONPARMX :)


  • 7.  RE: COBOL compiler options

    Posted 09-13-2021 09:02 AM
    Hi Philip, thanks for your answer.

    Just a little time after posting my question, i get the information i needed.  In the following IBM manual is the answer:

    Manual -->   Enterprise COBOL for z/OS 6.3 (SC27-8714-02)
    Chapter --> Chapter 14. Compiling under z/OS
    Title -->        Defining a compiler-option data set (SYSOPTF)

    Sorry about my dumb question, at fisrt I thought that the SYSOPTF option was provided by endevor.  Thanks in advance and I hope my answer helps with this subject.

    Diego.



  • 8.  RE: COBOL compiler options

    Posted 09-13-2021 04:33 PM
    No worries Diego, your question was a good one.

    🙂

    ------------------------------
    Phil Gineo
    Senior Systems Engineer
    Aetna / CVS Health
    Hartford Connecticut USA
    ------------------------------



  • 9.  RE: COBOL compiler options

    Posted 20 days ago
    The CONPARMX output can be read from SYSIN and that is addition to the SYSOPTF which can reference symbolics. We compile twice (initial entry stage and again on first move to next stage). For 6.3 (which is better than 6.1 or 6.2) we have:

    //* Include MDECK option for the entry stage compile only
    // IF entrystage THEN
    //SYSOPTF DD DATA,DLM=@@
    &COBPARM
    MDECK
    @@
    // ELSE
    //SYSOPTF DD DATA,DLM=@@
    &COBPARM
    @@
    // ENDIF
    //SYSIN DD *
    CBL ARCH(&#ARCH),INITCHECK
    // IF entrystage THEN
    // DD *
    CBL NUMCHECK,PARMCHECK
    CBL DIAGTRUNC,RULES(NOEVENP,NOLXPRF),SERVICE('&C1ELEMENT'),SSR,TEST
    CBL LIST,MAP,TERM,VBREF
    /*
    // IF ('&DEBUG' NE 'YES') THEN
    // DD *
    CBL OPT(1)
    /*
    // ENDIF
    // ELSE
    // IF ('&DEBUG' EQ 'YES') THEN
    //* Post entry stage debugging when needed
    // DD *
    CBL OPT(1),TEST(EJPD)
    /*
    // ELSE
    // DD *
    CBL NOSOURCE,NOXREF
    CBL OPT(2),STGOPT,NOTEST(DWARF)
    /*
    // ENDIF
    // ENDIF entrystage THEN ELSE
    // DD DSN=&&ELMOUT,
    // DISP=(OLD,DELETE)