Previous Page | Next Page

The DATASETS Procedure

EXCHANGE Statement


Exchanges the names of two SAS files in a SAS library.
Featured in: Manipulating SAS Files

EXCHANGE name-1=other-name-1
<...name-n=other-name-n>
</ <ALTER=alter-password>
<MEMTYPE=mtype>>;

Required Arguments

name=other-name

exchanges the names of SAS files in the procedure input library. Both name and other-name must already exist in the procedure input library.


Options

ALTER=alter-password

provides the alter password for any alter-protected SAS files whose names you want to exchange. You can use the option either in parentheses after the name of each SAS file or after a forward slash.

See also: Using Passwords with the DATASETS Procedure
MEMTYPE=mtype

restricts processing to one member type. You can exchange only the names of SAS files of the same type. You can use the option either in parentheses after the name of each SAS file or after a forward slash.

Default: If you do not specify MEMTYPE= in the PROC DATASETS statement, the default is ALL.
See also: Restricting Member Types for Processing

Details

Previous Page | Next Page | Top of Page