IBM Support

PI55336: COBOL V5.X CUSTOMERS COMPILING PROGRAMS THAT USE FLOATING POINT ARITHMETIC USING ARITH(COMPAT) MAY YIELD DIFFERENT RESULTS

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Enterprise COBOL V5.x customers compiling programs that use
    floating point arithmetic using ARITH(COMPAT) may yield
    different results.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL V5 using compiler  *
    *                 option ARITH(COMPAT) compiling and running   *
    *                 programs that use COMP-1 or COMP-2 data      *
    *                 items.                                       *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect output: Users compiling with  *
    *                      the ARITH(COMPAT) option may get        *
    *                      different computational results due to  *
    *                      rounding when using different suboption *
    *                      settings for the OPTIMIZE option.       *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply provided service.                      *
    ****************************************************************
    When the ARITH(COMPAT) option is in effect, the compiler may
    pre-calculate the result of a MOVE or COMPUTE statement, or the
    generated code may calculate them during program execution. The
    method used depends on the context of the MOVE or COMPUTE
    statement, and the setting of the OPTIMIZE option. The two
    calculation methods may give different results due to rounding.
    
    FIXCAT keyword:  COB0501T/K   COB0502T/K
    

Problem conclusion

  • The COBOL compiler and runtime library have been corrected to
    give consistent results when ARITH(COMPAT) option is used, and
    COMP-1 and COMP-2 data items are involved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI55336

  • Reported component name

    LE ENT COBOL LI

  • Reported component ID

    568819812

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-13

  • Closed date

    2016-01-22

  • Last modified date

    2016-02-01

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

    PI55112

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

Modules/Macros

  • IGZXLPKA
    

Fix information

  • Fixed component name

    LE ENT COBOL LI

  • Fixed component ID

    568819812

Applicable component levels

  • R7A0 PSY UI34683

       UP16/01/28 P F601

  • R780 PSY UI34684

       UP16/01/28 P F601

  • R790 PSY UI34685

       UP16/01/28 P F601

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":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSCVR7X","label":"Runtime"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
14 December 2020