IBM Support

PI60916: RATIONAL DEVELOPER FOR SYSTEM Z (RDZ) ATTEMPTS TO RUN SOFTWARE ANALYZER TO CHECK SQLCODE RULE MAY GIVE INCORRECT RESULTS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • 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
    

Local fix

Problem summary

  • Attempts to run Software Analyzer to check SQLCode rule may give
     incorrect results.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI60916

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-15

  • Closed date

    2016-09-30

  • Last modified date

    2016-09-30

  • 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

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTRMM","label":"IBM Developer for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
17 October 2021