Previous Topic: 4.2.4.3.2 Input Data Set Statement (INPUTSAS)

Next Topic: 4.2.4.3.4 Required Data Element Definition

4.2.4.3.3 Variable Rename Statement (RENAME)

This statement allows the user to change the name of a
variable in the INPUTSAS data set. Renames are applied as the
input data is read from the SAS data sets via the RENAME
option.  Note that all subsequent MSI statements must use the
RENAMEd value.
STATEMENT FORMAT

This keyword is coded with the KEYWORD starting in column 1,
free-form, and continuing through column 72.  Continuation is
not supported.  The following describes the format and
coding rules for the RENAME statement.

  RENAME orgname  newname
    |      |         |
    |      |         |
    |      |         +--- NEWNAME - New variable name
    |      |
    |      +---ORGNAME - original name of the variable on
    |                    the input SAS data set.
    |
    +-----Statement identifier

STATEMENT OPTION DEFINITIONS

  RENAME  - Defines the renaming of an input SAS data set
            variable.

            ORGNAME - The eight-character name of the
                      variable on the INPUTSAS or INPUTMODEL
                      data set. If ORGNAME is the same as an
                      existing common data element, COMMON
                      status is revoked.

            NEWNAME - The eight character new variable name.
                      Note that all subsequent statements
                      must refer to NEWNAME.