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 IC85877 Status: Geschlossen

SQL COMPATIBILITY : EXIT COMMAND DOES NOT RETURN PROPER RETURN CODE FOR
BIND VARIABLES WITH NUMBER DATATYPE

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
This issue is critical in terms of customer's migrating from 
oracle to DB2 will need to modify their scripts, if they have 
bind variables of type NUMBER and used with EXIT command. 
 
CLPPlus EXIT command returns always 0 when used with Bind 
Variable of type NUMBER. for example: 
 
variable exit_value number; 
 
declare 
v_dummy integer; 
begin 
:exit_value:=9; 
select col01 into v_dummy from (select 1 col01  from dual); 
end; 
/ 
 
exit :exit_value
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Customers migrating from Oracle to DB2 will encounter this   * 
* issue if their SQL scripts have EXIT command with NUMBER     * 
* bind variable type                                           * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* upgrade to v97 FP7 or later releases.                        * 
****************************************************************
Local-Fix:
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
v97 FP7 fixes this issue. User will be able to use bind 
variables of type NUMBER with EXIT command.
Workaround
Use integer bind variable instead
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC88638 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
14.08.2012
20.10.2012
20.10.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP7
Problem behoben lt. FixList in der Version
9.7.0.7 FixList