IBM Support

PI67723: DISPLAY OF BINARY FIELD IN COBOL V5.2 SHOWS INCORRECT VALUE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling a certain program with COBOL V4.2, a binary
    field contains a negative value - as expected.  When the same
    program is compiled with COBOL V5.2, the binary field contains
    a positive value - which is incorrect.
    
    The problem occurs at OPT(1|2) and ARCH(10|11).
    

Local fix

  • Use OPT(0) or ARCH(9|8)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL V5.2 compiling     *
    *                 programs with ARCH(10|11) and OPT(1|2) that  *
    *                 contain MULTIPLY X BY -1, where X is a       *
    *                 signed USAGE DISPLAY data item that          *
    *                 redefines an unsigned USAGE DISPLAY data     *
    *                 item, or SUBTRACT Y FROM 0 GIVING Z, where   *
    *                 Y is an unsigned USAGE DISPLAY or            *
    *                 PACKED-DECIMAL data item and Z is a signed   *
    *                 USAGE DISPLAY data item.                     *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output at runtime: The        *
    *                      MULTIPLY or SUBTRACT is not performed,  *
    *                      and the destination contains a          *
    *                      positive value instead of the expected  *
    *                      negative value.                         *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    *                                                              *
    ****************************************************************
    The compiler optimizer was incorrectly updating its internal
    state, causing it to discard the information it needed to
    generate code for the negation.
    

Problem conclusion

  • The compiler was fixed to correctly update its internal state
    and generate code for the negation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI67723

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655W3200

  • Reported release

    520

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-17

  • Closed date

    2016-09-27

  • Last modified date

    2016-11-25

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

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

    PI72814

Modules/Macros

  •    IGYCBE
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655W3200

Applicable component levels

  • R520 PSY UI41146

       UP16/09/30 P F609

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":"520","Edition":"","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"520","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
25 November 2016