Chapter Contents

Previous

Next
RENAME

RENAME



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.


Comparisons


Examples


See Also

Data Set Option:

RENAME=


Chapter Contents

Previous

Next

Top of Page

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