home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
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
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC85563 Status: Closed

ERROR SQL0206N OCCURS WHEN SQLERRM OUTSIDE THE EXCEPTION BLOCK WITHOUT
PARAMETERS

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
Error SQL0206N  "SYSIBMINTERNAL_SQLERRM" is not valid in the 
context where it is used.  LINE NUMBER=11.  SQLSTATE=42703  is 
returned when the customer is executing the SQLERRM outside the 
exception block WITHOUT PARAMETERS. 
 
Issue faced on DB2 Galileo 10.1 on Windows 2008 
 
 
Issue can be reproduce by executing the below test case: 
----------------------------------------------- 
 
    CONNECT TO SAMPLE; 
 
SET SQLCOMPAT PLSQL; 
 
-- CREATE OR REPLACE PROCEDURE list_emp 
-- is 
DECLARE 
  v_ErrorText varchar(2048); 
  v_deptname varchar(100); 
-- SYSIBMINTERNAL_SQLERRM  VARCHAR(500); 
BEGIN 
 
     select deptname into v_deptname from org fetch first 1 row 
only; 
 
-- EXCEPTION 
--    WHEN NO_DATA_FOUND THEN 
        DBMS_OUTPUT.PUT_LINE(SQLERRM); 
 
END; 
/ 
 
----------------------------------------------------
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All user on Galileo version                                  * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* NA                                                           * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
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

Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
26.07.2012
31.10.2012
31.10.2012
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.2 FixList
10.5.0.2 FixList