IBM Support

SE73084: RDI 9.6.0.7 EDITING SQLRPGLE SOURCE WITH EMBEDDED SQL THE EDITORMAY INCORRECTLY REPORT SYNTAX ERRORS FOR VALID SQLRPGLE SOURCE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When editing SQLRPGLE source with embedded SQL using the Remote
    Systems LPEX Editor in Rational Developer for i (RDI) 9.6.0.7
    the editor may incorrectly report syntax errors for valid
    SQLRPGLE source.
    
    The problem occurs when the source has a complex SQL statement
    with a CASE nested within a CASE, resulting in two END words in
    sequence at the end of the two CASEs. This causes a problem in
    the SQL and RPG parsing, leading the editor to not recognize the
    correct end of the SQL statement. The result is incorrect token
    coloring in the editor, error annotations in the editor, and an
    incorrect Outline view.
    
    For example:
    CASE WHEN ... ELSE CASE WHEN ... ELSE ... END END
    

Local fix

  • Enclose the nested CASE in brackets, so that the two ENDs are
    separated by a closing bracket.
    
    For example to correct the sample in the problem description:
    CASE WHEN ... ELSE (CASE WHEN ... ELSE ... END) END
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ILE RPG developers using RDi to edit SQLRPGLE source.        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Embedded SQL with a CASE â ¦ END within a CASE â ¦ END       *
    * incorrectly diagnosed with syntax errors.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The adjacent END END tokens from the nested CASE was incorrectly
    parsed, leading to invalid errors.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    SE73084

  • Reported component name

    RDI RPG AND COB

  • Reported component ID

    5724Y99RC

  • Reported release

    960

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-26

  • Closed date

    2021-09-21

  • Last modified date

    2021-09-21

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

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

Modules/Macros

  • syntaxCh
    

Fix information

  • Fixed component name

    RDI RPG AND COB

  • Fixed component ID

    5724Y99RC

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSAE4W","label":"Rational Developer for i"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"960"}]

Document Information

Modified date:
22 September 2021