Summary

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 ...

Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.