Problem Note 5895: INSERT no longer works with PROC SQL PASS-THROUGH using
"SELECT...INTO..."
The following SELECT statement worked when using PROC SQL PASS-THROUGH
at SAS Version 6.12, but fails at SAS V8:
select cd_st, name_st,
into #mytemp
from cd_st
where date_updt='10/12/99'
This SQL extracts data in Sybase and inserts it into a temporary table
on the Sybase server without returning any results to the SAS program.
Beginning with Version 8, this syntax no longer worked. Instead,
you must explicitly create the temporary table, including the column
definitions, then run the rest of the SQL in standard form.
This is a SAS Version 8 bug with the "select... into..." statement.
The problem is not that a temporary table is being created; the problem
is that "select ... into..." should work. What is happening is that in
V6, in a PROC SQL EXECUTE statement, any "select" would return an error,
except if it was a "select... into..." type.
To resolve this problem, upgrade to SAS V8.2.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/ACCESS Interface to Sybase | 64-bit Enabled HP-UX | 8.1 TS1M0 | 8.2 TS2M0 |
| HP-UX | 8.1 TS1M0 | 8.2 TS2M0 |
| ABI+ for Intel Architecture | 8.1 TS1M0 | 8.2 TS2M0 |
| Solaris | 8.1 TS1M0 | 8.2 TS2M0 |
| IRIX | 8.1 TS1M0 | 8.2 TS2M0 |
| 64-bit Enabled Solaris | 8.1 TS1M0 | 8.2 TS2M0 |
| 64-bit Enabled AIX | 8.1 TS1M0 | 8.2 TS2M0 |
| Tru64 UNIX | 8.1 TS1M0 | 8.2 TS2M0 |
| AIX | 8.1 TS1M0 | 8.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.
| Type: | Problem Note |
| Priority: | high |
| Topic: | SAS Reference ==> LIBNAME Engines Data Management ==> Data Sources ==> External Databases ==> Sybase
|
| Date Modified: | 2001-11-20 14:11:06 |
| Date Created: | 2001-09-19 12:09:30 |