Chapter Contents


The DATASETS Procedure

CHANGE Statement

Renames one or more SAS files in the same SAS data library.

Featured in: Manipulating SAS Files

</ <ALTER=alter-password>

Required Arguments

changes the name of a SAS file in the input data library. old-name must be the name of an existing SAS file in the input data library.
Featured in: Manipulating SAS Files


provides the alter password for any alter-protected SAS files named in the CHANGE statement. Because a CHANGE statement changes the names of SAS files, you need alter access to use the CHANGE statement. You can use the ALTER= option in parentheses after new-name or after a forward slash.
See also: Using Passwords with the DATASETS Procedure

restricts processing to a single generation file or to the entire generation group. Valid values for GENNUM= are

refers to the base name and all generation files of a generation group.

postive integer
refers to an explicit generation file.

negative integer
refers to a relative generation file.

The following statements change the name of A(GENNUM=3) to B:

proc datasets;
   change A=B / gennum=3;

proc datasets;
   change A(gennum=3)=B;

The following CHANGE statement produces an error:

proc datasets;
   change A(gennum=3)=B(gennum=3);

restricts processing to one member type (mtype).
Aliases: MTYPE=, MT=
Default: If you do not specify MEMTYPE= in the PROC DATASETS statement, the default is MEMTYPE=ALL.
See also: Restricting Member Types Available for Processing


Chapter Contents



Top of Page

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