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 Statements: Reference

Syntax

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

Required Argument

Here is a simplified explanation of the ATTRIB statement syntax. For the complete syntax and its explanation, see the ATTRIB statement in ATTRIB Statement in SAS Statements: Reference.

attribute-list
LENGTH=<$>length
specifies the length of the variables in variable-list. Under Windows, the length that you can specify for a numeric variable ranges from 3 to 8 bytes.

Details

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.