Chapter Contents |
Previous |
Next |
SAS Procedures Guide |
Temporary and Permanent SAS Data Sets |
proc print data=work.debate; run; proc print data=debate; run;
The SAS system options WORK=, WORKINIT, and WORKTERM affect how you work with temporary and permanent libraries. See SAS Language Reference: Dictionary for complete documentation.
Typically, two-level names represent permanent SAS data sets. A two-level name takes the form libref.SAS-data-set. The libref identifies an external storage location that stores SAS data sets in your operating environment. A LIBNAME statement associates a libref with an external storage location. In the following PROC PRINT step, PROCLIB is the libref and EMP is the SAS data set within the library:
libname proclib 'SAS-data-library'; proc print data=proclib.emp; run;
options user='SAS-data-library'; proc print data=debate; run;
Note: If you have a USER data library defined, you can still use the WORK data library by specifying WORK.SAS-data-set.
SAS System Options |
BYLINE|NOBYLINE | |
DATE|NODATE | |
DETAILS|NODETAILS | |
FMTERR|NOFMTERR | |
FORMCHAR= | |
FORMDLIM= | |
LABEL|NOLABEL | |
LINESIZE= | |
NUMBER|NONUMBER | |
PAGENO= | |
PAGESIZE= | |
REPLACE|NOREPLACE | |
SOURCE|NOSOURCE |
For a complete description of SAS system options, see SAS Language Reference: Dictionary.
Data Set Options |
proc print data=stocks(obs=25 pw=green);
The individual procedure chapters contain reminders that you can use data set options where it is appropriate.
SAS data set options are
ALTER= | LABEL= |
BUFNO= | OBS= |
BUFSIZE= | OUTREP= |
CNTLLEV= | PW= |
COMPRESS= | PWREQ= |
DLDMGACTION= | READ= |
DROP= | RENAME= |
ENCRYPT= | REPLACE= |
FILECLOSE= | REUSE= |
FILEFMT= | SORTEDBY= |
FIRSTOBS= | TRANTAB= |
GENMAX= | TYPE= |
GENNUM= | WHERE= |
IN= | WHEREUP= |
INDEX= | WRITE= |
KEEP= |
For a complete description of SAS data set options, see SAS Language Reference: Dictionary.
Global Statements |
comment | ODS |
DM | OPTIONS |
ENDSAS | PAGE |
FILENAME | RUN |
FOOTNOTE | %RUN |
%INCLUDE | SKIP |
LIBNAME | TITLE |
%LIST | X |
MISSING |
For information on all but the ODS statement, refer to SAS Language Reference: Dictionary. For some information on the ODS statement, refer to Output Delivery System and to The Complete Guide to the SAS Output Delivery System.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.