Previous Page | Next Page

SAS Statements under Windows

ATTRIB Statement: Windows

Associates a format, informat, label, and length with one or more variables.
Valid in: a DATA step
Windows specifics: length specification
See: ATTRIB Statement in SAS Language Reference: Dictionary



ATTRIB variable-list-1 attribute-list-1...<variable-list-n attribute-list-n>;

Note:   Here 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.  [cautionend]


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.

Previous Page | Next Page | Top of Page