SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled AIX9.2 TS2M0
Windows Vista for x649.2 TS2M0
Windows Vista9.2 TS2M0
Microsoft Windows XP Professional9.2 TS2M0
Microsoft Windows Server 2008 for x649.2 TS2M0
Microsoft Windows Server 2003 for x649.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M0
Microsoft® Windows® for x649.2 TS2M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M0
Microsoft Windows XP 64-bit Edition9.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M0
z/OS9.2 TS2M0
64-bit Enabled HP-UX9.2 TS2M0
64-bit Enabled Solaris9.2 TS2M0
HP-UX IPF9.2 TS2M0
Linux9.2 TS2M0
Linux for x649.2 TS2M0
OpenVMS on HP Integrity9.2 TS2M0
Solaris for x649.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.