Associates a format, informat, label, and length with one or more
variables
| Valid: |
in a DATA step
|
| Windows specifics: |
length specification
|
|
ATTRIB variable-list-1
attribute-list-1...<variable-list-n attribute-list-n>;
|
Note:
Following is a simplified explanation of the ATTRIB
statement syntax. For the complete syntax and its explanation, see the ATTRIB statement in SAS Language Reference:
Dictionary. ![[cautend]](../common/images/cautend.gif)
-
attribute-list
-
-
LENGTH=<$>length
-
specifies the length of the variables in variable-list. Under Windows, the length you can specify for a numeric variable ranges from 3 to
8 bytes.
Using the ATTRIB statement in the DATA step permanently associates attributes with variables by changing the descriptor
information of the SAS data set that contains the variables.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.