IBM Support

PK53464: wrong initialization for COBOL VALUE ALL X'FF' clause

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    
     - OS (name, language, version or SP): Microsoft Windows XP SP2
     - Product name (Build ID or version/patch level): IBM Rational
    Application Developer 6.0.1.2
    Reproducible Y/N: Y
    Description of problem:
    
    A COBOL field defined with a  VALUE ALL X'FF' clause, is wrongly
      converted in Java Language because the initialization phase is
     only partially made and not for the full length of the fill as
    expected
    For example:
          01  TEST-AREA.
               03 TESTATA                            PIC X(30)
                                                    VALUE ALL X'FF'.
    will generate the following Java code:
    String testataInitialValue = \u00ff\u00ff\u00ff\u00ff\u00ff;
    Steps to reproduce:
    1) Create A cobol CPY file with the above example
    2) Create a J2C Java bean by importing the COBOL file
    
    Workaround:
    Modify the generated code like for example:
    MarshallStringUtils.marshallFixedLengthStringIntoBuffer(
        ",
    

Local fix

Problem summary

  • Hexadecimal literals were not supported in the code
    generation.  They are now supported.
    

Problem conclusion

  • Hexadecimal literals were not supported in the code
    generation.  They are now supported in Rational Application
    Developer V7005.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK53464

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-09-25

  • Closed date

    2007-12-12

  • Last modified date

    2007-12-12

  • 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 APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R600 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 October 2021