If you use the RENAME=
data set option when you create a data set, the new variable name
is included in the output data set. If you use RENAME= on an input
data set, the new name is used in DATA step programming statements.
If you use RENAME= on
an input data set that is used in a SAS procedure, SAS changes the
name of the variable in that procedure. If you use RENAME= with WHERE
processing such as a WHERE statement or a WHERE= data set option,
the new name is applied before the data is processed. You must use
the new name in the WHERE expression.
If you use RENAME= in
the same DATA step with either the DROP= or the KEEP= data set option,
the DROP= and the KEEP= data set options are applied before RENAME=.
You must use the old name in the DROP= and KEEP= data set options.
You cannot drop and rename the same variable in the same statement.
Note: The RENAME= data set option
has an effect only on data sets that are opened in output mode.