Gen EDGE

 View Only
  • 1.  Which COBOL 6 Compiler OPTIMIZE setting to use?

    Posted Nov 05, 2019 02:31 PM
    Hello,

        Any one compiling with COBOL 6 having issues using OPTIMIZE settings 1 or 2 ?

        What is the preferred OPTIMIZE setting? 
       

    Thanks,
    Ben


  • 2.  RE: Which COBOL 6 Compiler OPTIMIZE setting to use?

    Broadcom Employee
    Posted Nov 05, 2019 11:09 PM
    Hi Ben,
    FYI I searched and so far I could not find any Gen support cases reported related to problems with the OPT(1) and OPT(2) settings.
    There was an IBM APAR for OPT(2) referred to in this KB article but that was for COBOL 5.x: Using CA Gen with the COBOL V5 or COBOL V6 Compiler
    Hopefully another community user can help.

    Regards,

    Lynn

    ------------------------------
    Lynn Williams
    Senior Principal Support Engineer
    Broadcom
    Australia
    ------------------------------



  • 3.  RE: Which COBOL 6 Compiler OPTIMIZE setting to use?
    Best Answer

    Posted Nov 06, 2019 02:12 AM
    Edited by Lenn Thompson Nov 06, 2019 09:52 AM
    Hi Ben,

    We use the COBOL 6.2 compiler with the following compiler options (regarding OPTIMIZE):

    • Test and debug environment
    OPTIMIZE(0)
    MAXPCF(100000)
    NOTEST(DWARF,NOSOURCE, NOSEPARATE)
    INLINE

    • Runtime optimal environment
    OPTIMIZE(2)
    MAXPCF(100000)
    TEST(NOEJPD, DWARF, SOURCE, NOSEPARATE)
    NOINLINE​

    Best regards,
    Mieke



  • 4.  RE: Which COBOL 6 Compiler OPTIMIZE setting to use?

    Posted Nov 07, 2019 11:13 AM
    Thanks for the replies. 

    I have passed the information on to the development team.

    They are moving from COBOL compiler v3.4.1 to COBOL V6.2.


  • 5.  RE: Which COBOL 6 Compiler OPTIMIZE setting to use?

    Posted Nov 06, 2019 04:19 AM
    Hi Ben,

    We have been using COBOL 6.2 for our z/OS code base since late 2017 and have utilised the OPT(2) CA Gen 8.6 default HE/IT setting without issue - though it remains important to ensure, per Lynn's comments, that you are running latest IBM APARs and maintenance for the compiler and the associated LE environmental/runtime support. 

    Hope this helps. 

    Kindest Regards

    Gary Donoghue

    ------------------------------
    Senior Consultant/Developer
    Information Engineering Technology
    ------------------------------



  • 6.  RE: Which COBOL 6 Compiler OPTIMIZE setting to use?

    Posted Nov 07, 2019 11:14 AM
    Thanks for the confirmation on OPT(2).