PM80201: AB04E RC00D93011 DSNRGLM1.DSNRUC01 +08DE ON COMMIT IN SQLPL PROC

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • On a COMMIT within a DB2 native SQLPL procedure, the following
    abend may occur:
       ABEND04E RC00D93011 at DSNRGLM1 . DSNRUC01 +08DE
    
    Additional search keywords: SQLNATIVESQLPL SQLPROCEDURE
                                SQLCOMMIT
    

Local fix

  • If possible, remove the COMMIT from within the SQLPL procedure
    and, instead, issue the COMMIT in the caller 'after'
    the procedure completes.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: 1. All DB2 10 for z/OS users of migrated     *
    *                 native SQL Procedures and procedures with    *
    *                 COMMIT ON RETURN YES attribute.              *
    *                 .                                            *
    *                 2. All DB2 9 and DB2 10 for z/OS users of    *
    *                 native SQL procedures with a COMMIT          *
    *                 statement or with COMMIT ON RETURN YES       *
    *                 attribute.                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: 1a. COMMIT ON RETURN does not occur for *
    *                      migrated procedures that are nested     *
    *                      in native SQL procedures.               *
    *                      .                                       *
    *                      1b. When an RRSAF application calls a   *
    *                      native SQL procedure (eg SP1), which    *
    *                      then calls a migrated native SQL        *
    *                      procedure with COMMIT ON RETURN YES     *
    *                      (eg SP2), the error can occur after     *
    *                      SP2 has completed the COMMIT ON RETURN  *
    *                      and returns back to SP1's CALL          *
    *                      statement.                              *
    *                      .                                       *
    *                      If SP1 then issues a COMMIT followed    *
    *                      by DROP of SP2, the DROP may fail with  *
    *                      SQLCODE -615.                           *
    *                      .                                       *
    *                      2. ABEND04E RC00D93011                  *
    *                      DSNRGLM1.DSNRUC01 +08DE when a COMMIT   *
    *                      is being executed inside a Native       *
    *                      SQL PL procedure.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    1a. When a migrated native SQL procedure calls itself or
    another stored procedure defined with COMMIT ON RETURN YES
    attribute, DB2 does not perform the COMMIT upon returning from
    the nested procedure.
    .
    1b. When an RRSAF application calls a native SQL procedure
    (eg SP1), which then calls a migrated native SQL procedure
    with COMMIT ON RETURN YES (eg SP2), the error can occur after
    SP2 has completed the COMMIT ON RETURN. This is due to
    the interest in the RRS UR not being deleted causing the
    reported SQLCODE -615 problem with the subsequent DROP because
    the following caller's COMMIT does not eallocate the stored
    procedure package.
    .
    2. When the COMMIT has been issued inside a native SQL
    procedure, the module which issued the COMMIT had not checked
    the return code and thus did not issue the subsequent ROLLBACK.
    The reported problem occurs because the missing implicit
    ROLLBACK causes Phase 1 COMMIT to fail due to a connection
    failure.
    

Problem conclusion

  • 1a. DB2 code has been modified to perform COMMIT ON RETURN for
    the called procedure when returning back to the calling
    Native SQL PL procedure.
    .
    1b. DB2 code has been modified to delete the interest on the
    RRS UR during the COMMIT ON RETURN.
    .
    2. DB2 code has been modified to check the COMMIT's return code
    and issue the appropriate implicit ROLLBACK upon failure.
    
    ADDITIONAL KEYWORDS: SQLSP SQLSTOREDPROC RRSATTACH SQLDROP
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM80201

  • Reported component name

    DB2 OS/390 & Z/

  • Reported component ID

    5740XYR00

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-09

  • Closed date

    2013-02-21

  • Last modified date

    2013-04-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UK91889 UK91890

Modules/Macros

  •    DSNXESPL DSNXESP9
    

Fix information

  • Fixed component name

    DB2 OS/390 & Z/

  • Fixed component ID

    5740XYR00

Applicable component levels

  • RA10 PSY UK91889

       UP13/03/09 P F303

  • R910 PSY UK91890

       UP13/03/09 P F303

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for z/OS

Software version:

910

Reference #:

PM80201

Modified date:

2013-04-02

Translate my page

Machine Translation

Content navigation