IBM Support

IC85261: CALLING STORED PROCEDURE ON NON-LUW DATABASES FAILS TO RETURN THE RETURN CODE WRITTEN IN THE STORED PROC

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When calling a stored procedure located on a non
    Linux/Unix/Windows database
    server such as z/OS and i-Series the return code inside the
    stored procedure is not returned.
    
    The output below should return "RETURN STATUS: 1000" since this
    was coded in the stored procedure.  Instead the incorrect output
    "RETURN STATUS: 0" is returned.
    
    
    connect to sample user db2inst1 using
    
       Database Connection Information
    
     Database server        = DB2 z/OS 9.1.5
     SQL authorization ID   = DB2INST1
     Local database alias   = SAMPLE
    
    
    CREATE PROCEDURE TEST (OUT ID INTEGER) RESULT SETS 1
            LANGUAGE SQL
            DISABLE DEBUG MODE
    P1: BEGIN
    
            DECLARE cursor1 CURSOR WITH RETURN FOR SELECT c1 from
    t1;
            -- If OPEN cursor1 is commented out the expected rc=1000
    is returned
            OPEN cursor1;
            RETURN 1000;
    END P1
    DB20000I  The SQL command completed successfully.
    
    call test(?)
    ID: NULL
    
    C1
    
     "TEST" RETURN_STATUS: 0
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply DB2 version 9.7 Fixpack 7.                             *
    ****************************************************************
    

Problem conclusion

  • Problem first fixed in DB2 version 9.7 Fixpack 7.  This should
    be applied to the DB2 Connect system used to establish
    connectivity to non Linux/Unix/Windows database servers such as
    z-Series and i-Series.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC85261

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-12

  • Closed date

    2012-10-30

  • Last modified date

    2012-10-30

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

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

    IC88341

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
30 October 2012