IBM Support

PI72014: IN IBM RATIONAL DEVELOPER FOR SYSTEM Z 9.1.1.3, CUSTOM COBOL RULE IN SOFTWARE ANALYZER CAN NOT FIND INCLUDE SQLCA

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In Rational Developer for System z 9.1.1.3 and 9.5.1.1, a custom
    COBOL rule
    in Software Analyzer can not find
    INCLUDE SQLCA when ran against a program having a COPY statement
    in the LINKAGE SECTION.
    
    Steps to reproduce:
    1. Create a custom COBOL rule plugin
    2. Code the method:
                public boolean visit(ExecSqlStmt n) {
                    // TODO examine node for rule violations and add
    violating nodes to node list
                    System.out.println("SQL="+n.getSqlStmt());
    
                    return true;
                }
    
    3. Run as an Eclipse application
    4. In the new Eclipse application,create a local COBOL project
    and a program such as
    
           WORKING-STORAGE SECTION.
    
               EXEC SQL
                  INCLUDE SQLCA
               END-EXEC.
    
            LINKAGE SECTION.
    
               COPY TSTCPY1.
    
           PROCEDURE DIVISION USING WS-RS-PARMS.
    
    6.  Right-click in the Editor and select Software Analysis >
    Software Analysis Configurations...
    7.  Select the custom rule only and run
    
    SQLCA is not found as no line such as "SQL=SQLCA" is written to
    the log
    

Local fix

  • Do not include a COPY statement in the LINKAGE section if
    possible
    

Problem summary

  • RDz custom COBOL rules sometimes cannot find EXEC SQL INCLUDE
    statements when the data division ends with a COPY statement.
    

Problem conclusion

  • Modified the COBOL Application Model that is produced to
    correctly account for EXEC SQL INCLUDE statements in the data
    division.
    
    The problem listed in this APAR has been resolved with
    IBM Rational Developer for System z V9.1.1.5 Fix Pack which
    is available from the Recommended Fixes support download page:
    http://www-1.ibm.com/support/docview.wss?rs=2294&uid=swg27006335
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI72014

  • Reported component name

    DEV FOR Z SYS

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-08

  • Closed date

    2017-01-25

  • Last modified date

    2017-01-25

  • 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

    DEV FOR Z SYS

  • Fixed component ID

    5724T0700

Applicable component levels

  • R911 PSY

       UP



Document information

More support for: Rational Developer for System z

Software version: 9.1.1

Reference #: PI72014

Modified date: 25 January 2017