IBM Support

PI48850: UNEXPECTED ERROR "ENDP EXPECTED INSTEAD OF THIS INPUT" DURING REAL-TIME SYNTAX CHECK OF A PLI PROGRAM IN RDZ

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Unexpected error "endp expected instead of this input" during
    real-time syntax check
    of a PLI program in Rational Developer for System z (RDz) v
    9.1.1.1.
    
    
    Steps to reproduce:
    
    1- create a PLI program like:
    
    helloapp: proc() options(main);
        DCL     var1    CHAR(5) init('GO');
    
             ON    ERROR
    BEGIN;
             ON    ERROR SYSTEM;
                                                                END;
    
    if var1 = 'GO' THEN
        do;
           Display('PMR79838');
    
    end helloapp;
    
    2- note the missing end of the if statement
    
    3- type the end statement:
    ..
    if var1 = 'GO' THEN
        do;
           Display('PMR79838');
        end;
    
    end helloapp;
    
    4- observe the real-time syntax check error on the left bar of
    the editor
    

Local fix

  • Error disappears when the file is saved
    

Problem summary

  • When a PL/I program is modified so that the block structure of
    the program is altered, the PL/I parser incorrectly adjusts the
    structure of the program, and incorrect syntax checking results.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI48850

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-09-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

Reference #: PI48850

Modified date: 17 October 2015