IBM Support

PM41944: Cobol Compiler error if using 18 digit arithmetic

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • User has a this EGL plrogram:
    ACCNO num(17);
    RAC   char(34);
    ACCNO = RAC;
    
    The generated cobol (using maxNumericDigits=18) in RBD V7 and V8
    fails to compile with the following message:
    
    IGZ0151S Argument-1 for function NUMVAL-C in program EI50600 at
    
    displacement X'042354' contained more than 18
    
    
    This worked correctly in V6.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The numvalc COBOL runtime routine was not properly handling
    ?16 digits and was producing erroneous results. This was
    only failing when maxNumericDigits was set to 18. When set
    to 31, which is the normal case, the values are correct.
    

Problem conclusion

  • The software now calls the EGL runtime instead to convert
    the text, for all assignment cases, when maxnumericdigits
    has been set to 18.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM41944

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-17

  • Closed date

    2012-03-15

  • Last modified date

    2012-03-15

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

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

Fix information

  • Fixed component name

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 October 2021