Previous Page | Next Page

The DATASETS Procedure

RENAME Statement


Renames variables in the SAS data set specified in the MODIFY statement.
Restriction: Must appear in a MODIFY RUN group
Featured in: Modifying SAS Data Sets

RENAME old-name-1=new-name-1
<...old-name-n=new-name-n>;


Required Arguments

old-name=new-name

changes the name of a variable in the data set specified in the MODIFY statement. old-name must be a variable that already exists in the data set. new-name cannot be the name of a variable that already exists in the data set or the name of an index, and the new name must be a valid SAS name. See "Rules for SAS Variable Names" in SAS Language Reference: Concepts.


Details

Previous Page | Next Page | Top of Page