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 IC71084 Status: Closed

ADMIN_CMD() FOR IMPORT TABLE DOESN'T PROPERLY ACCEPT THE CLAUSE
'USING SCHEMA <SCHEMA-ID>'

product:
DB2 FOR LUW / DB2FORLUW / 950 - DB2
Problem description:
the same statement from clp non ADMIN_CMD works fine but does 
not work in ADMIN_CMD 
 
example : 
 
IMPORT FROM "c:\output\product2.asc" OF DEL  METHOD P (1, 2, 3, 
4, 5, 6, 7)  XMLPARSE PRESERVE WHITESPACE XMLVALIDATE USING 
SCHEMA ZENGLAND.PRODUCT MESSAGES ON SERVER  REPLACE INTO 
ZENGLAND.PRODUCT (PID, NAME, PRICE, PROMOPRICE, PROMOSTART, 
PROMOEND, DESCRIPTION) 
 
 
executing this by sysproc.admin_cmd() gives the following : 
 
An unexpected token "SCHEMA" was found following "SCHEMA". 
Expected tokens may include:  "XDS".. SQLCODE=-104, 
SQLSTATE=42601, DRIVER=3.61.64
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users of admin_cmd                                           * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* IMPORT FROM "c:\output\product2.asc" OF DEL  METHOD P (1, 2, * 
* 3,                                                           * 
* 4, 5, 6, 7)  XMLPARSE PRESERVE WHITESPACE XMLVALIDATE USING  * 
*                                                              * 
* SCHEMA ZENGLAND.PRODUCT MESSAGES ON SERVER  REPLACE INTO     * 
*                                                              * 
* ZENGLAND.PRODUCT (PID, NAME, PRICE, PROMOPRICE, PROMOSTART,  * 
*                                                              * 
* PROMOEND, DESCRIPTION)                                       * 
*                                                              * 
*                                                              * 
*                                                              * 
*                                                              * 
*                                                              * 
* executing this by sysproc.admin_cmd() gives the following :  * 
*                                                              * 
*                                                              * 
*                                                              * 
* An unexpected token "SCHEMA" was found following "SCHEMA".   * 
*                                                              * 
* Expected tokens may include:  "XDS".. SQLCODE=-104,          * 
*                                                              * 
* SQLSTATE=42601, DRIVER=3.61.64                               * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v95fp7/ V97                                   * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 9.5 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Fixed in V95fp7.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
10.09.2010
12.10.2010
12.10.2010
Problem solved at the following versions (IBM BugInfos)
9.5.FP7,
9.5.FP7/,
9.7.
Problem solved according to the fixlist(s) of the following version(s)
9.1.0.7 FixList
9.5.0.7 FixList