Skip to main content

PM74761: OPTIMIZING COMPILER CREATES BAD CODE.


A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When EGL supplies the COBOL compiler with a very large program
    to compile and optimize, the compiler generates bad code.
    In one case an array index defined as PICTURE S9(5)
    COMPUTATIONAL-3 created bad object code.  Changing it to
    COMPUTATIONAL solved it but that's just one symptom.
    

Local fix

  • Compile with option NOOPT.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL Version 4          *
    *                 compiling large programs (such as those      *
    *                 sometimes produced by EGL) and use the       *
    *                 compiler option OPTIMIZE.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: The COBOL compiler builds an incorrect  *
    *                      program.                                *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    *                                                              *
    ****************************************************************
    A counter overflowed in the COBOL compiler optimizer phase
    causing it to use a wrong intermediate value.
    

Problem conclusion

  • The COBOL compiler optimizer is changed to detect the
    counter overflow an abort with OSRVE-V1.
    If you encounter OSRVE-V1, the compiler is unable to optimize
    this program, so either recompile with compiler option NOOPTMIZE
    or break the program up into smaller parts.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM74761

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655S7100

  • Reported release

    420

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-10

  • Closed date

    2012-10-26

  • Last modified date

    2012-11-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UK83046 UK83047

Modules/Macros

  •    IGYOCOMN IGYOCOMP IGYOENV  IGYOPREF IGYOSRVE
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655S7100

Applicable component levels

  • R400 PSY UK83046

       UP12/10/30 P F210

  • R420 PSY UK83047

       UP12/10/30 P F210

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Enterprise COBOL for z/OS


Software version:
4.2


Reference #:
PM74761


Modified date:
2012-11-01

Translate my page

Content navigation