IBM Support

PI37425: RATIONAL DEVELOPER FOR SYSTEM Z DB2 PROGRAM(PP(SQL) COMPILER OPTION) RECEIVES UNRESOLVED SQLCA VARIABLES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • In RDz v9.1.x PL/I parser treats DO-END blocks like a new scope
    for variable, therefore the SQLCA declaration inside the DO
    block is treated as if the variables are only valid there.
    
    EXEC SQL INCLUDE SQLCA
    
    becomes the following in the punch file
    
    /*$*$*$
       EXEC SQL INCLUDE SQLCA
      $*$*$*/
    
       DO;
    DCL
       1 SQLCA  ,
         2 SQLCAID     CHAR(8),
         2 SQLCABC     FIXED BIN(31),
         2 SQLCODE     FIXED BIN(31),
         2 SQLERRM     CHAR(70) VAR,
         2 SQLERRP     CHAR(8),
         2 SQLERRD(6)  FIXED BIN(31),
         2 SQLWARN,
           3 SQLWARN0  CHAR(1),
           3 SQLWARN1  CHAR(1),
           3 SQLWARN2  CHAR(1),
           3 SQLWARN3  CHAR(1),
           3 SQLWARN4  CHAR(1),
           3 SQLWARN5  CHAR(1),
           3 SQLWARN6  CHAR(1),
           3 SQLWARN7  CHAR(1),
         2 SQLEXT,
           3 SQLWARN8  CHAR(1),
           3 SQLWARN9  CHAR(1),
           3 SQLWARNA  CHAR(1),
           3 SQLSTATE  CHAR(5);
    END;
    

Local fix

  • NA
    

Problem summary

  • The PL/I parser incorrectly treats DO-groups as a new variable
    scope.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI37425

  • Reported component name

    RATL DEV FOR SY

  • Reported component ID

    5724T0700

  • Reported release

    911

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-19

  • Closed date

    2015-10-16

  • Last modified date

    2015-10-16

  • 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



Document information

More support for: Rational Developer for System z

Software version: 9.1.1

Reference #: PI37425

Modified date: 16 October 2015