Associates a format, informat, label, or length or all four with
one or more variables
Language element: |
statement
|
Valid: |
in a DATA step
|
OpenVMS specifics: |
length specification
|
ATTRIB variable-list-1
attribute-list-1
|
< . . . variable-list-n attribute-list-n>;
|
|
- variable-list
- names the variables that you want to associate
with the attributes.
- attribute-list
- specifies one or more attributes to assign
to variable-list. Specify one or more of these
attributes in the ATTRIB statement:
- FORMAT=format
- associates a format with variables in
variable-list.
- INFORMAT=informat
- associates an informat with variables in
variable-list.
- LABEL='label'
- associates a label with variables in
variable-list.
- LENGTH=<$>length
- specifies the length of variables in variable-list. A dollar sign ($) is required in front of the
length of character variables. For character variables, the value of length is 1 to
32,767.
Under OpenVMS Alpha,
the minimum length that you can specify for a numeric variable is 3 bytes.
Under OpenVMS VAX, the minimum length that you can specify
for a numeric variable is 2 bytes.
- ATTRIB statement in SAS Language
Reference: Dictionary
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.