Problem Note 39997: A database error can occur when you submit an SQL query with a LIBNAME statement that uses the MULTI_DATASRC_OPT=IN_CLAUSE option
When you submit certain SQL queries in either SAS/ACCESS® Interface to Oracle or SAS/ACCESS® Interface to DB2, you can receive the following errors:
Error that occurs in Oracle:
ERROR: ORACLE prepare error: ORA–00933: SQL command not properly ended.
SQL statement: SELECT (the selection statement follows)
Error that occurs in DB2:
DB2: ERROR: CLI open cursor error: [IBM][CLI Driver][DB2] SQL0104N
An unexpected token ")" was found
The error occurs when you use the MULTI_DATASRC_OPT=IN_CLAUSE option in the LIBNAME statement that points to your database, as shown in the following example for Oracle:
libname ciwdb oracle path=oracle–path user=user–name password=password multi_datasrc_opt=in_clause;
To circumvent the problem, remove the MULTI_DATASRC_OPT=IN_CLAUSE option if you encounter this problem.
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled AIX | 9.2 TS2M0 | |
Windows Vista for x64 | 9.2 TS2M0 | |
Windows Vista | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.2 TS2M0 | |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
z/OS | 9.2 TS2M0 | |
64-bit Enabled HP-UX | 9.2 TS2M0 | |
64-bit Enabled Solaris | 9.2 TS2M0 | |
HP-UX IPF | 9.2 TS2M0 | |
Linux | 9.2 TS2M0 | |
Linux for x64 | 9.2 TS2M0 | |
OpenVMS on HP Integrity | 9.2 TS2M0 | |
Solaris for x64 | 9.2 TS2M0 | |
*
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.
A database error can occur when you submit an SQL query in either SAS/ACCESS® Interface to Oracle or SAS/ACCESS® Interface to DB2. The error occurs when you use the MULTI_DATASRC_OPT=IN_CLAUSE in the LIBNAME statement that points to the database.
Type: | Problem Note |
Priority: | medium |
Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2 Data Management ==> Data Sources ==> External Databases ==> Oracle
|
Date Modified: | 2010-07-13 13:22:38 |
Date Created: | 2010-06-15 10:46:41 |