IBM Support

PI21846: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ): IN COBOL PROGRAMS, KEYWORDS 'NEW' AND 'OLD' ARE MARKED AS ERRORS.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Rational Developer for System z - RDz - V8.5.1.5
    
    In a COBOL program, the keywords 'NEW' and/od 'OLD' are not
    recognized as valid keywords and are marked with a warning sign.
    
    Re-creation steps:
    
    For instance, use the following code:
    
    1     MOVE SQLCODE TO DB2SQL-ABEND-SQLCODE.
    2     EVALUATE DB2SQL-CALL-FUNCTION
    3         WHEN NEW
    4              MOVE '91' TO DB2SQL-ABEND-RETCODE
    5              MOVE 'INSERT ERROR' TO DB2SQL-ABEND-TEXT
    ...
    7         WHEN OTHER
    8              MOVE '99' TO DB2SQL-ABEND-RETCODE
    9     END-EVALUATE.
    
    the word 'NEW' of the third line is underligned and a warning
    sign appears in front of the line with the following error
    message:
    'EvaluatePhraseList' is invalid.
    

Local fix

Problem summary

  • Issue in RDz COBOL parser when the CICS support was added that
    caused error annotations when handling valid NEW and OLD key
    words.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI21846

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-11

  • Closed date

    2015-02-04

  • Last modified date

    2015-02-04

  • 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 DEV FOR SY

  • Fixed component ID

    5724T0700

Applicable component levels

  • R851 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTRMM","label":"IBM Developer for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"851","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
16 October 2021