IBM Support

SE64051: RDI 9.5.0.2 INCORRECT "MISPLACED CONSTRUCT" MESSAGE IN SQLRPGLE SOURCE FOR EXEC SQL PRECEDING RPG DECLARATIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When editing ILE RPG source that contains SQL statements
    (SQLRPGLE) using the Remote Systems LPEX Editor in Rational
    Developer for i (RDI) 9.5.0.2, if the embedded SQL contains
    declarations and precedes RPG declarations, the editor may
    incorrectly flag the source with a warning.  Moving the mouse
    cursor over the marker at the side of the source will reveal the
    message "Misplaced construct".  The source compiles without
    error.
    
    Here is an example of what may cause the issue:
    
         exec sql
            <some-sql-declaration>;
    
        dcl-s myfield char(1);
    

Local fix

  • Move the embedded SQL statement to be after all RPG
    declarations.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ILE RPG developers using RDi.                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * In RDi 9.5  embedded SQL declarations cause "misplaced       *
    * construct" messages in editor.                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When editing ILE RPG source that contains SQL statements
    (SQLRPGLE) using the Remote Systems LPEX Editor in Rational
    Developer for i (RDI) 9.5.0.2, if the embedded SQL contains
    declarations and precedes RPG declarations, the editor may
    incorrectly flag the source with a warning.  Moving the mouse
    cursor over the marker at the side of the source will reveal the
    message "Misplaced construct".  The source compiles without
    error.
    

Problem conclusion

  • This problem is fixed in the RDi 9.5.0.3 update.
    

Temporary fix

Comments

APAR Information

  • APAR number

    SE64051

  • Reported component name

    RDI RPG AND COB

  • Reported component ID

    5724Y99RC

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-02-12

  • Closed date

    2016-04-22

  • Last modified date

    2016-04-22

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

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

Modules/Macros

  • Editor
    

Fix information

  • Fixed component name

    RDI RPG AND COB

  • Fixed component ID

    5724Y99RC

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSAE4W","label":"Rational Developer for i"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
22 April 2016