Usage Note 13182: How to create and insert into an Oracle temporary table
Using SAS/ACCESS Interface to Oracle with SAS 9.1, you can create an
Oracle temporary table and insert the values from a SAS data set into
this temporary table using the libname engine. The following code
demonstrates this:
/* Use PROC SQL Pass-Through to create the Oracle temp table */
/* Then use libname engine to insert rows from SAS data set, */
/* sasuser.TRANS into the Oracle temp table, TEMPTRANS */
libname ora oracle user=scott pw=tiger path=lupin connection=global;
proc sql;
connect to oracle (user=scott pw=tiger path=lupin connection=global);
execute (create global temporary table TEMPTRANS
(empno number, sal number) on commit preserve rows) by oracle;
insert into ora.TEMPTRANS select * from sasuser.TRANS;
select * from connection to oracle(select * from temptrans);
quit;
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Oracle | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows XP Professional | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 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: | Usage Note |
Priority: | |
Topic: | Data Management ==> Data Sources ==> External Databases ==> Oracle SAS Reference ==> LIBNAME Engines
|
Date Modified: | 2004-11-11 12:41:13 |
Date Created: | 2004-08-30 10:27:56 |