Chapter Contents

Previous

Next
The DATASETS Procedure

EXCHANGE Statement


Exchanges the names of two SAS files in a SAS data 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 ALTER= option 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 (mtype). You can only exchange the names of SAS files of the same type.
Default: If you do not specify MEMTYPE= in the PROC DATASETS statement, the default is ALL.
See also: Restricting Member Types Available for Processing


Details


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.