IBM Support

PI45077: RDZ REAL-TIME SYNTAX CHECK ERROR IN COBOL REPLACE STATEMENT WITH COMMENTS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Rational Developer for System z - RDz - v9.1.1.1 real-time
    syntax check
    raises parsing errors on COBOL REPLACE statements having
    embedded comments.
    
    Steps to reproduce:
    
    1) Create a program with the following statement:
    
           REPLACE
    
           ==:par:== by ==
               display '  +-------------------------'
          *     'my comment'
               display '  | TEST REPLACE           |'
               display '  +-------------------------'==
               .
    
           Working-Storage Section.
    2) Following errors are raised by real-time syntax check:
    "== ..." is invalid
    "BY" unexpected tokens ignored
    
    
    No errors are raised if comment is removed
    
           ==:par:== by ==
               display '  +-------------------------'
               display '  | TEST REPLACE           |'
               display '  +-------------------------'==
               .
    

Local fix

  • errors can be ignored or comment removed.
    

Problem summary

  • Rational Developer for System z - RDz - v9.1.1.1 real-time
    syntax check raises parsing errors on COBOL REPLACE
    statements having embedded comments.
    

Problem conclusion

  • Copy Statement Lexer / COBOL Parser has an issue where it is not
    handling comments inside the pseudo text between Equal-Equal
    signs.
    
    The problem listed in this APAR has been resolved with
    IBM Rational Developer for System z V9.1.1.2 Fix Pack which
    is available from the Recommended Fixes support download page:
    http://www-1.ibm.com/support/docview.wss?rs=2294&uid=swg27006335
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI45077

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-07-16

  • Closed date

    2015-10-17

  • Last modified date

    2015-10-17

  • 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

  • R911 PSY

       UP



Document information

More support for: Rational Developer for System z

Software version: 9.1.1

Reference #: PI45077

Modified date: 17 October 2015