PM71902: Rational Developer for System z (RDz)COBOL editor displays errors although compile works
A fix is available
Closed as program error.
Rational Developer for System z (RDz) Some valid COBOL statements that will pass the compiler are flagged as errors and block functions in the editor such as the F3. The following statements will generate errors in the RDz editor but not in the COBOL compiler. Recreation Steps: Add these lines to the PrintApp.cbl from the COBOL Workstation example: If In-name = ('T ' OR ' T') OR ('P ' OR ' P') OR SPACE NEXT SENTENCE ELSE MOVE LENGTH In-name TO In-Len. These 3 warnings are issued: for the ('P ' OR ' P') OR: '?' expected instead of this input for the SPACE I get: 'Positive' expected after this token for the MOVE I get: 'OF' expected after this token
Abbreviated combined relation conditions where the first relation condition used an abbreviated form in parentheses are not being parsed successfully by the real-time syntax checking parser. For example, "IF VAR = ('T ' OR ' T') OR ('P ' OR ' P') OR SPACE" was not accepted, but " IF VAR = SPACE OR ('T ' OR ' T') OR ('P ' OR ' P')" was accepted. Both compile successfully. In addition, for the LENGTH OF special register, the OF is required according to the COBOL Language Reference, but accepted by the compiler even if omitted.
Added a parsing rule for real-time syntax checking, which accepts abbreviated combined relation conditions where the first relation condition uses an abbreviated form in parentheses. In addition, the OF while in the LENGTH OF special register is now treated as optional. The problem listed in this APAR has been resolved with IBM Rational Developer for System z V22.214.171.124 Fix Pack which is available from the Recommended Fixes support download page: http://www-1.ibm.com/support/docview.wss?rs=2294&uid=swg27006335
Reported component name
RATL DEV FOR SY
Reported component ID
Last modified date
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fixed component name
RATL DEV FOR SY
Fixed component ID
Applicable component levels