IBM Support

PM24486: Results from running StrLib.formatNumber are incorrect running generated COBOL

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Rational COBOL Runtime for zSeries V6.0.1:
    
    The results of running the generated COBOL for
    StrLib.formatNumber are incorrect.
    
    For example, with the following code:
    
      input_Number num(17,2) = 12345678;
      Input_String char(21) = "&&/&&/&&&&";
      output_Format char(21) = StrLib.formatNumber(input_Number,
                                                   input_String);
    
    The generated Java and EGL debugger results are:
    
      output_Format = 12/34/5678
    
    which is the correct result while the generated COBOL
    results are:
    
      output_Format = 12345678
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: USERS OF RATIONAL COBOL RUNTIME FOR ZSERIES  *
    ****************************************************************
    * PROBLEM DESCRIPTION: RESULTS FROM RUNNING                    *
    *                      STRLIB.FORMATNUMBER ARE INCORRECT       *
    *                      RUNNING GENERATED COBOL                 *
    ****************************************************************
    * RECOMMENDATION: APPLY THIS MAINTENANCE                       *
    ****************************************************************
    RESULTS FROM RUNNING STRLIB.FORMATNUMBER ARE INCORRECT RUNNING
    GENERATED COBOL
    

Problem conclusion

  • RESULTS FROM RUNNING STRLIB.FORMATNUMBER ARE INCORRECT RUNNING
    GENERATED COBOL
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM24486

  • Reported component name

    RATL COBOL RT Z

  • Reported component ID

    5655R2900

  • Reported release

    601

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-10-13

  • Closed date

    2010-11-22

  • Last modified date

    2011-01-03

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

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

    PM24488

Modules/Macros

  • EZEDTSI
    

Fix information

  • Fixed component name

    RATL COBOL RT Z

  • Fixed component ID

    5655R2900

Applicable component levels

  • R601 PSY UK62413

       UP10/12/02 P F012

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":"SSN27B","label":"Rational COBOL Runtime for zSeries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"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":"6.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
03 January 2011