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

Syntax Description

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.

variable-list

names the variables that you want to associate with the attributes.

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.