PM85884: RDz COBOL parser shows an unexpected error for the exponentiatio n operator ('**') when followed by a unary negative expressio
Fixes are available
Rational Developer for System z Fix Pack 4 (126.96.36.199) for 8.5.1
Rational Developer for System z Fix Pack 5 (188.8.131.52) for 8.5.1
Rational Developer for System z Interim Fix 1 for 184.108.40.206
Rational Developer for System z Fix Pack 7 (220.127.116.11) for 8.5.1
Rational Developer for System z Interim Fix 1 for 18.104.22.168
Rational Developer for System z Fix Pack 6 (22.214.171.124) for 8.5.1
Closed as program error.
When the exponentiation operator '**' is followed in a COBOL statement by a unary negative expression, such as in: COMPUTE A = B / (C * (100000 ** - D)) the parser will flag the exponentiation expression as being in error when it is not.
A work-around for this problem is to code parentheses around the unary negative expression COMPUTE A = B / (C * (100000 ** (- D)))
COBOL real-time syntax check did not allow raising a base to a signed power, showing an annotation warning instead.
This fix now allows raising a base to a signed power in a COBOL arithmethic expression. The problem listed in this APAR has been resolved with IBM Rational Developer for System z V126.96.36.199 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