Problem Note 44089: Trying to rename a DB2 table with a DATASETS procedure might result in an error
Using a CHANGE statement withing a DATASETS procedure to rename a DB2 table might result in an error. The problem occurs if you are accessing DB2 using SAS/ACCESS® Interface to DB2 under UNIX and PC hosts and a SCHEMA= option was defined in the LIBNAME statement. If a SCHEMA= option was included in the LIBNAME definition, the following error occurs:
ERROR: CLI execute error: [IBM][CLI Driver][DB2/AIX64] SQL0108N The name
"XXXX" has the wrong number of qualifiers. SQLSTATE=42601
The problem arises because the schema is included with the new table name in the statement passed to DB2, but DB2 does not allow it. The schema can be included only with the current DB2 table name. The only workaround is to use explicit pass-through and pass the DB2 RENAME statement.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to DB2 | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Windows Vista | 9.1 TS1M3 SP4 | |
Windows Vista for x64 | 9.1 TS1M3 SP4 | |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | |
Linux | 9.1 TS1M3 SP4 | |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2011-08-30 14:08:03 |
Date Created: | 2011-08-24 11:30:39 |