![]() Chapter Contents |
![]() Previous |
![]() Next |
| RENAME |
| Optional statement | |
| Applies to: | access descriptor or view descriptor |
| Interacts with: | ASSIGN, RESET |
| Syntax | |
| Details |
Syntax |
|
RENAME
column-identifier-1<=>SAS-variable-name
<...column-identifier-n<=>SAS-variable-name>; |
| Details |
An editing statement, such as RENAME, must follow the CREATE statement and the database-description statements when you create a descriptor. See CREATE for more information on the order of statements.
NO value, the renamed SAS variable names that you
specify in the access descriptor are retained throughout the access descriptor
and any view descriptor that is based on that access descriptor. For example,
if you rename the CUSTOMER column to CUSTNUM when you create an access descriptor,
that column continues to be named CUSTNUM when you select it in a view descriptor
unless a RESET statement or another RENAME statement is specified.
YES value in the ASSIGN
statement, you can use the RENAME statement to change SAS variable names only
while creating a specific access descriptor. As described earlier in the
ASSIGN statement, SAS variable names that are saved in an access descriptor
are always used when creating view descriptors that are based on it.
Renamed SAS variable names only apply to the current access descriptor that is being created. The default SAS variable names will be used for any subsequent access descriptors that are created in the same ACCESS procedure execution.
rename 7 birthdy firstname=fname;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.