13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 Overview 207About the Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>OverviewYou can specify <strong>SAS</strong>/<strong>ACCESS</strong> data set options on a <strong>SAS</strong> data set when you accessDBMS data with the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement. A data set option appliesonly to the data set on which it is specified, and it remains in effect <strong>for</strong> the duration ofthe DATA step or procedure. For options that you can assign to a group of relationalDBMS tables or views, see “LIBNAME Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 92.Here is an example of how you can <strong>SAS</strong>/<strong>ACCESS</strong> data set options:libname myoralib oracle;proc print myoralib.mytable(data-set-option=value)You can also use <strong>SAS</strong>/<strong>ACCESS</strong> data set options on a <strong>SAS</strong> data set when you accessDBMS data using access descriptors, see “Using Descriptors with the <strong>ACCESS</strong>Procedure” on page 907. Here is an example:proc print mylib.myviewd(data-set-option=value)You cannot use most data set options on a PROC SQL DROP (table or view)statement.You can use the CNTLLEV=, DROP=, FIRSTOBS=, IN=, KEEP=, OBS=, RENAME=,and WHERE= <strong>SAS</strong> data set options when you access DBMS data. <strong>SAS</strong>/<strong>ACCESS</strong>interfaces do not support the REPLACE= <strong>SAS</strong> data set option. For in<strong>for</strong>mation aboutusing <strong>SAS</strong> data set options, see the <strong>SAS</strong> Language <strong>Reference</strong>: Dictionary.The in<strong>for</strong>mation in this section explains all applicable data set options. Thein<strong>for</strong>mation includes DBMS support and the corresponding LIBNAME options, andrefers you to documentation <strong>for</strong> your <strong>SAS</strong>/<strong>ACCESS</strong> interface when appropriate. For alist of the data set options available in your <strong>SAS</strong>/<strong>ACCESS</strong> interface with default values,see the reference section <strong>for</strong> your DBMS.Specifying data set options in PROC SQL might reduce per<strong>for</strong>mance, because itprevents operations from being passed to the DBMS <strong>for</strong> processing. For morein<strong>for</strong>mation, see “Overview of Optimizing Your SQL Usage” on page 41.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!