FCMP Procedure
ATTRIB Statement
Specifies format, label, and length information for variables.
Syntax
Required Argument
variable
specifies the variables that you want to associate with attributes.
Optional Arguments
FORMAT=format-name
associates a format with variables in the variable argument.
LABEL='label'
associates a label with variables in the variable argument.
LENGTH=length
specifies the length of the variable in the variable argument.
Example
Here are some examples of the ATTRIB statement:
attrib x1 format=date7. label='variable x1' length=5;
attrib x1 format=date7. label='variable x1' length=5
x2 length=5
x3 label='var x3' format=4.
x4 length=$2 format=$4.;
Last updated: September 15, 2026