home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC89879 Status: Geschlossen

SQL0480N WITH ASSOCIATE RESULT SET LOCATORS INSIDE EXCEPTION HANDLER WHEN
SQLCODE > 0

Produkt:
DB2 CONNECT / DB2CONNCT / A10 - DB2
Problembeschreibung:
A SQL procedure that sets an ASSOCIATE RESULT SET LOCATOR inside 
an exception handler could fail with an SQL0480N error ("The 
procedure "<procedure-name>" has not yet been called.") if the 
SQLCODE of the corresponding stored procedure is greater than 
zero. 
 
For example, inside the exception handler the following code 
could cause the stored procedure to fail when executed: 
 
DECLARE EXIT HANDLER FOR SQLEXCEPTION, SQLWARNING 
  BEGIN 
    -- MUST get all of the values in a single call here since 
the values will be reset after each line that is executed 
    SET v_SQLCODE = SQLCODE, v_SQLSTATE=SQLSTATE; 
 
    -- get the result set that is returned by the ADMIN_CMD 
stored procedure 
    ASSOCIATE RESULT SET LOCATORS(result1) WITH PROCEDURE 
SYSPROC.ADMIN_CMD; 
 
    ALLOCATE rsCur CURSOR FOR RESULT SET result1; 
 
    -- read the data from the result set that is returned by the 
LOAD utility 
    FETCH rsCur INTO v_ROWS_READ, v_ROWS_SKIPPED, v_ROWS_LOADED, 
v_ROWS_REJECTED, v_ROWS_DELETED, v_ROWS_COMMITTED, 
          v_ROWS_PARTITIONED, v_NUM_AGENTINFO_ENTRIES, 
v_MSG_RETRIEVAL, v_MSG_REMOVAL; 
 
    SET msg = 'Error while loading data. SQLCODE: ' || v_SQLCODE 
|| ' SQL State: ' || v_SQLSTATE || '. Execute the following SQL 
to view the LOAD utility messages: ' || v_MSG_RETRIEVAL; 
  END;  -- end of error handler
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v10.1, Fixpak 3                               * 
****************************************************************
Local-Fix:
n/a
verfügbare FixPacks:
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Lösung
First fixed in DB2 Version 10.1, Fixpak 3
Workaround
keiner bekannt / siehe Local-Fix
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC95324 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
28.01.2013
27.09.2013
27.09.2013
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
10.1.0.3 FixList
10.1.0.3 FixList