IBM Support

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.
    *
    RESOLUTION INFORMATION:
    The compiler termination messages generated AFTER installing
    this fix are:
    IGYOP5125-U  THE COMPILATION WAS TERMINATED DUE TO A COMPILER
                 ERROR IN IN PHASE ID: "IGYCOPTM".
    IGYOP5201-U   INTERNAL COMPILER ERROR CODE "OSRVE-V1" OCCURRED.
    *
    

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

    2013-06-11

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

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.2","Edition":"","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}}]

Document Information

Modified date:
11 June 2013