IBM Support

PI28736: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ): ERROR 'ERROR TOKEN' IS WRONGLY SHOWN WHEN SQL STATEMENT CONTAINS INCLUDE STATEMENT.

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.0.1.2
    
    COBOL parser sets an error when an SQL statement contains an
    INCLUDE statement.
    
    Re-creation steps:
    
    For instance, use the following code:
    
    1    EXEC SQL
    2          DECLARE VIEW01_KEY01_TXL_CSR CURSOR WITH HOLD FOR
    3          SELECT
    4          EXEC SQL
    5              INCLUDE COPY001
    6          END-EXEC
    7          FROM
    8          TXL_HHA
    9          WHERE
    10         EXEC SQL
    11             INCLUDE COPY002
    12         END-EXEC
    13         FOR UPDATE OF
    14         EXEC SQL
    15             INCLUDE COPY003
    16         END-EXEC
    17    END-EXEC.
    
    Once opened, lines 5 will be marked with the following error
    message:
    "ERROR_TOKEN" unexpected tokens ignored
    

Local fix

Problem summary

  • Multiple INCLUDE statements within a EXEC SQL statement causes
    error.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI28736

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    901

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-10-30

  • Closed date

    2017-05-11

  • Last modified date

    2017-05-11

  • 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

  • R901 PSY

       UP



Document information

More support for: Rational Developer for System z

Software version: 901

Reference #: PI28736

Modified date: 11 May 2017