IBM Support

PI71156: At OPT(1|2) and ARCH(10+) a MOVE from an unsigned to a signed display numeric field may fail to produce the correct result

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • At ARCH(10) and OPT(1|2), programs that perform arithmetic on
    usage display senders with an unsigned usage display receiver,
    and then immediately either perform additional arithmetic with a
    signed usage display receiver or move the unsigned usage display
    receiver to a signed usage display receiver, will receive an
    invalid result.
    
    At least one of the senders, or the intermediate result of the
    computation, must be 17 digits or larger.
    

Local fix

  • Compile at ARCH(9).
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL V5.2 running       *
    *                 programs that were compiled with ARCH(10)    *
    *                 and OPT(1|2) that contain arithmetic on      *
    *                 unsigned USAGE DISPLAY senders with an       *
    *                 unsigned USAGE DISPLAY receiver and then     *
    *                 immediately either performing the same       *
    *                 arithmetic with a signed USAGE DISPLAY       *
    *                 receiver or MOVE the unsigned USAGE DISPLAY  *
    *                 receiver to a signed USAGE DISPLAY           *
    *                 receiver. At least one of the senders, or    *
    *                 the intermediate result of the computation,  *
    *                 must be 17 digits or larger                  *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output: The signed USAGE      *
    *                      DISPLAY receiver has an incorrect       *
    *                      value.                                  *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    *                                                              *
    ****************************************************************
    The compiler was generating code to set the sign code on the
    signed USAGE DISPLAY receiver to x'C' by copying only the high
    register of a register pair to a new register pair, leaving an
    invalid value in the low register pair.
    

Problem conclusion

  • The compiler was fixed to either reuse the existing register
    pair or to copy both high and low registers to a new register
    pair.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI71156

  • 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-10-24

  • Closed date

    2016-11-22

  • Last modified date

    2016-12-01

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

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

    PI72816

Modules/Macros

  •    IGYCBE
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655W3200

Applicable component levels

  • R520 PSY UI42823

       UP16/11/26 P F611

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:
01 December 2016