Previous Page | Next Page

Copying, Moving, and Deleting SAS Data Sets

Review of SAS Tools


Procedures

PROC DATASETS LIBRARY=libref <KILL>;

starts the procedure and specifies the procedure input library for subsequent statements. The KILL option deletes all members and member types from the library.


DATASETS Procedure Statements

COPY OUT=libref <IN=libref> <MOVE>;

copies files from the procedure input library that is specified in the PROC DATASETS statement to the output library that is specified in the OUT= option. The IN= option specifies a different input library. The MOVE option deletes files from the input library after copying them to the output library.

You can use the following statements with the COPY statement:

EXCLUDE SAS-data-set;

specifies a SAS data set that you want to exclude from the copy process. Files that you do not list in this statement are copied to the output library.

SELECT SAS-data-set;

specifies a SAS data set that you want to copy to the output library.

DELETE SAS-data-set;

deletes only the SAS data set that you specify in this statement.

SAVE SAS-data-set;

deletes all members of the library except those that you specify in this statement.

Previous Page | Next Page | Top of Page