The COPY procedure copies one or more SAS files from a SAS data library.
Generally, the COPY procedure functions the same as the COPY statement in the DATASETS procedure. The two differences are as follows :
The IN= argument is required with PROC COPY. In the COPY statement, IN= is optional. If IN= is omitted, the default value is the libref of the procedure input library.
PROC DATASETS cannot work with libraries that allow only sequential data access.
Note: The MIGRATE procedure is available specifically for migrating a SAS data library from a previous release to the most recent release. For migration, PROC MIGRATE offers benefits that PROC COPY does not. For documentation on PROC MIGRATE, see the Migration Community at http://support.sas.com/rnd/migration .