| Accessing Other Vendors' DBMS Data |
| Lesson
Summary |
This page contains
To go to the page where a task, programming feature, or concept was presented, select a link.
DBMS Access Using the LIBNAME Statement
Engine Connection Options
LIBNAME Options
Preserving Column and Table Names
DBMS Access Using the Explorer Window
Using DBMS Data in SAS Programs
DBMS Access Using the SQL Procedure Pass-Through
Facility
|
| II. Syntax
To go to the page where a statement or option was presented, select a link.
libname dbdeux odbc
user=cestmoi using=sesame db=receipts
connection=globalread dbindex=yes
dbconinit='exec update_proc';
proc print data=dbdeux.sales;
run;
data work.highsale;
set dbdeux.sales;
if totalsales>500000 then sales="High";
else if totalsales>300000 then sales="Moderate";
else sales="Low";
run;
proc print data=work.highsale;
run;
libname oraclib oracle user=cestmoi
password=sesame path=oracpath;
preserve_col_names=yes;
proc sql dquote=ansi;
create table oraclib.gtforty as
select lname as LastName,
fname as FirstName,
salary as Salary
format=dollar10.2
from oraclib.staff a,
oraclib.payroll b
where (a.idnum eq b.idnum) and
(salary gt 40000);
quit;
proc sql;
connect to oracle as dblink
(user=cestmoi pw=trustme path=orapath
connection=global);
select *
from connection to dblink
(select id, lastname, firstname,
hiredate, salary
from employees
|
![]() ![]() |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.