Previous Page | Next Page

Statements

RENAME Statement



Specifies new names for variables in output SAS data sets.
Valid: in a DATA step
Category: Information
Type: Declarative

Syntax
Arguments
Details
Comparisons
Examples
See Also

Syntax

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


Arguments

old-name

specifies the name of a variable or variable list as it appears in the input data set, or in the current DATA step for newly created variables.

new-name

specifies the name or list to use in the output data set.


Details

The RENAME statement allows you to change the names of one or more variables, variables in a list, or a combination of variables and variable lists. The new variable names are written to the output data set only. Use the old variable names in programming statements for the current DATA step. RENAME applies to all output data sets.

Note:   The RENAME statement has an effect on data sets opened in output mode only.  [cautionend]


Comparisons


Examples


See Also

Data Set Option:

RENAME= Data Set Option

Previous Page | Next Page | Top of Page