Problem Note 34392: An error occurs when you use the DB2 WITH statement in an SQL procedure that uses the REMOTE engine
An error occurs when you use the DB2 WITH statement in an SQL procedure that uses the REMOTE engine. Support for the WITH statement was added in SAS® 6 to the PROC SQL Pass-Through Facility in SAS/ACCESS® Interface to DB2. However, when you use the REMOTE engine in PROC SQL along with a DB2 WITH statement, the following error is generated:
ERROR: The SQL used in a CONNECTION TO <dbms> phrase is not a SELECT expression.
The error occurs when you submit code similar to the following example:
options remote=remote;
signon;
proc sql;
connect to remote as db2 (server=your-server dbms=db2 dbmsarg=database=sample));
create table one as
(
select * from connection to DB2
(
with test as
(
select name from sysibm.systables where creator='SOMEONE'
)
select * from TEST
)
) ;
A fix for this issue is planned for a future software release.
Operating System and Release Information
| SAS System | SAS/CONNECT | z/OS | 9.1 TS1M3 SP4 | |
| 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® for x64 | 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 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
| Tru64 UNIX | 9.1 TS1M3 SP4 | |
*
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: | high |
| Date Modified: | 2009-02-05 11:30:35 |
| Date Created: | 2009-01-07 14:32:49 |