If
old-name does
not exist in the SAS data set or
new-name already
exists, PROC DATASETS stops processing the RUN group containing the
RENAME statement and issues an error message.
When you use the RENAME
statement to change the name of a variable for which there is a simple
index, the statement also renames the index.
If the variable that
you are renaming is used in a composite index, the composite index
automatically references the new variable name. However, if you attempt
to rename a variable to a name that has already been used for a composite
index, you receive an error message.