
Example 2: Manipulating SAS Files
Features: PROC DATASETS statement options
DETAILS
LIBRARY=
COPY statement
CHANGE statement
DELETE statement
EXCHANGE statement
Other features: COPY procedure
EXCLUDE statement
OPTIONS statement
Details
This example demonstrates the following tasks:
• changes the names of SAS files
• copies SAS files between SAS libraries
• deletes SAS files
• selects SAS files to copy
• exchanges the names of SAS files
• excludes SAS files from a copy operation
Program
options pagesize=60 linesize=80 nodate pageno=1 source;
LIBNAME dest1 'SAS-library-1';
LIBNAME dest2 'SAS-library-2';
LIBNAME health 'SAS-library-3';
proc datasets library=health details; ...