PI60916: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ) ATTEMPTS TO RUN SOFTWARE ANALYZER TO CHECK SQLCODE RULE MAY GIVE INCORRECT RESULTS
Fixes are available
Rational Developer for System z Fix Pack 1 (18.104.22.168) for 9.1.1.
Rational Developer for System z Fix Pack 1 (22.214.171.124) for 9.1.1.
Rational Developer for System z Fix Pack 1 (126.96.36.199) for 9.1.1.
Rational Developer for System z Fix Pack 1 (188.8.131.52) for 9.1.1.
Rational Developer for System z Fix Pack 1 (184.108.40.206) for 9.1.1
Closed as program error.
Rational Developer for System z - RDz COBOL code that has a SQL execs done in an If-then-else and the SQLCODE is checked after the if-then-else segment then it may be flagged as a coding error based on the software anaylzer rule: EXEC SQL: Check the value of SQLCODE after an EXEC SQL statement This rule is in the COBOL Code Review > Program Structures. For example, the following code will cause a both SQL Exec lines to be flagged: IF EMPNO OF INPUT-PARMS = " " THEN EXEC SQL SELECT EMPNO, FIRSTNME, LASTNAME FROM DSN8910.EMP WHERE SEX = 'F' END-EXEC ELSE EXEC SQL SELECT EMPNO, FIRSTNME, LASTNAME FROM DSN8910.EMP WHERE SEX = 'M' END-EXEC End-IF EVALUATE SQLCODE WHEN 0 DISPLAY "SQLCODE = 0" WHEN 100 DISPLAY "SQLCODE = 100" WHEN OTHER DISPLAY "SQLCODE = Other" END-EVALUATE
Attempts to run Software Analyzer to check SQLCode rule may give incorrect results.
Modified rule code to ensure correct results. The problem listed in this APAR has been resolved with IBM Rational Developer for System z V220.127.116.11 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
NoSpecatt / Xsystem
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