Chapter Contents

Previous

Next
The DATASETS Procedure

Procedure Syntax


Tip: Supports RUN-group processing.
Tip: Supports the Output Delivery System. (See Output Delivery System for details.)
Reminder: You can use any global statements as well. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements as well. See Global Statements for a list.

PROC DATASETS <option(s)>;
AGE current-name related-SAS-file(s)
</ <ALTER=alter-password>
<MEMTYPE=mtype>>;
APPEND BASE=<libref.>SAS-data-set
<APPENDVER=V6>
<DATA=<libref.>SAS-data-set>
<FORCE>;
AUDIT SAS-file-name <SAS-password>;
INITIATE;
<LOG <BEFORE_IMAGE=YES|NO>
<DATA_IMAGE=YES|NO>
<ERROR_IMAGE=YES|NO>;>
<USER_VAR=variable-1 <... variable-n>;>
<SUSPEND|RESUME|TERMINATE;>
CHANGE old-name-1=new-name-1
<...old-name-n=new-name-n >
</ <ALTER=alter-password>
<CONSTRAINT=YES|NO>
<GENNUM=ALL|integer>
<INDEX=YES|NO>
<MEMTYPE=mtype>>;
CONTENTS<option(s)>;
COPY OUT=libref-1
<CLONE|NOCLONE>
<IN=libref-2>
<MEMTYPE=(mtype(s))>
<MOVE <ALTER=alter-password>>;
EXCLUDE SAS-file(s) < / MEMTYPE=mtype>;
SELECT SAS-file(s)
</ <ALTER=alter-password>
<MEMTYPE= mtype>>;
DELETE SAS-file(s)
</ <ALTER=alter-password>
<GENNUM=ALL|HIST|REVERT|integer>
<MEMTYPE=mtype>>;
EXCHANGE name-1=other-name-1
<...name-n=other-name-n>
</ <ALTER=alter-password>
<MEMTYPE=mtype> >;
MODIFY SAS-file <(file-option(s))>
</ <GENNUM=ALL|HIST|REVERT|integer>
<MEMTYPE=mtype>>;
FORMAT variable-list-1 <format-1>
<...variable-list-n <format-n>>;
IC CREATE <constraint-name>=constraint
<NOT NULL | CHECK(WHERE-clause)
| PRIMARY KEY | UNIQUE
| FOREIGN KEY(variable)
REFERENCES SAS-data-set>
<MESSAGE='message-string'>;
IC DELETE constraint-name(s)| _ALL_;
IC REACTIVATE foreign-key-name REFERENCES libref;
INDEX CENTILES index(s)
</ <REFRESH>
<UPDATECENTILES=
ALWAYS|NEVER|integer> >;
INDEX CREATE index-specification(s)
</ <NOMISS>
<UNIQUE>
<UPDATECENTILES=
ALWAYS|NEVER|integer>>;
INDEX DELETE index(s) | _ALL_;
INFORMAT variable-list-1 <informat-1>
<...variable-list-n <informat-n>>;
LABEL variable-1=<'label-1'|' '>
<...variable-n=<'label-n'|' ' >>;
RENAME old-name-1=new-name-1
<...old-name-n=new-name-n>;
REPAIR SAS-file(s)
</ <ALTER=alter-password>
<GENNUM=integer>
<MEMTYPE=mtype>>;
SAVE SAS-file(s) </ MEMTYPE=mtype>;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.