IBM Support

PH14291: A FORMAT 3 "DIVIDE ID1 BY NNN GIVING ID2 REMAINDER ID3" WITH ID1 & ID2 AS SAME VARIABLE GIVES WRONG REMAINDER FOR ARCH(12)

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A format 3 "DIVIDE id1 BY nnn GIVING id2 REMAINDER id3" when
    id1 and id2 point to the same variable gives the wrong
    remainder under ARCH(12), but works correctly under ARCH(11).
    
    DIVIDE W-CH-SUM BY 10 GIVING W-CH-SUM
           REMAINDER W-CH-REMAINDER
    
    When id1 and id2 are the same data item, the remainder value is
    incorrect under ARCH(12).
    When id2 and id2 are not the same data item, the remainder is
    always correct.
    

Local fix

  • Compile under ARCH(11) or below.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL V6.2, compiling    *
    *                 programs at ARCH(12) that contain a DIVIDE   *
    *                 with REMAINDER where the dividend and        *
    *                 quotient are the same data item.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: The remainder incorrectly contains the  *
    *                      same value as the quotient.             *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    ****************************************************************
    When calculating the remainder, the compiler loaded the value of
    the dividend after calculating the quotient. Since the dividend
    and quotient use the same data item, this loads the quotient,
    not the dividend, before specifying the remainder.
    

Problem conclusion

  • The compiler is fixed to generate the correct remainder value.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH14291

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655EC600

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-09

  • Closed date

    2019-09-18

  • Last modified date

    2019-10-01

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

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

Modules/Macros

  • IGY8RWTU IGYCASMB IGYCCBE  IGYCCCRT IGYCCICS IGYCCSRV IGYCDGEN
    IGYCDIAG IGYCDMAP IGYCEN$0 IGYCEN$1 IGYCEN$2 IGYCEN$3 IGYCEN$4
    IGYCEN$5 IGYCEN$8 IGYCEN$D IGYCEN$R IGYCFGEN IGYCFREE IGYCINIT
    IGYCJA$0 IGYCJA$1 IGYCJA$2 IGYCJA$3 IGYCJA$4 IGYCJA$5 IGYCJA$8
    IGYCJA$D IGYCJA$R IGYCLIBH IGYCLIBO IGYCLIBR IGYCLSTR IGYCLVL0
    IGYCLVL1 IGYCLVL2 IGYCLVL3 IGYCLVL8 IGYCMALL IGYCOPI  IGYCOSCN
    IGYCPGEN IGYCRCTL IGYCRDPR IGYCRDSC IGYCREAL IGYCRWT  IGYCSCAN
    IGYCSIMD IGYCUE$0 IGYCUE$1 IGYCUE$2 IGYCUE$3 IGYCUE$4 IGYCUE$5
    IGYCUE$8 IGYCUE$D IGYCUE$R IGYCXREF IGYDRV   IGYEQCWI IGYMSGE
    IGYMSGK  IGYMSGT  IGYQCBE  IGYZQDRV IGYZQENU IGYZQJPN
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655EC600

Applicable component levels

  • R620 PSY UI65366

       UP19/09/21 P F909

  • R621 PSY UI65367

       UP19/09/21 P F909

  • R622 PSY UI65368

       UP19/09/21 P F909

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":"620","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
12 December 2023