Previous Page | Next Page

Statements under OpenVMS

LENGTH Statement: OpenVMS



Specifies how many bytes SAS uses to store a variable's value.
Valid: in a DATA step
OpenVMS specifics: valid numeric variable lengths
See: LENGTH Statement in SAS Language Reference: Dictionary

Syntax
Details
See Also

Syntax

LENGTH <variable-specification-1>
<. . .variable-specification-n><DEFAULT=n>;

length

can range from 3 to 8 bytes for numeric variables in the OpenVMS on HP Integrity Servers environment.

DEFAULT=n

changes the default number of bytes used for storing the values of newly created numeric variables from 8 to the value of n.

In the OpenVMS on HP Integrity Servers environment, n can range from 3 to 8 bytes.


Details

The LENGTH statement specifies the number of bytes used for storing variables.

In general, the length of a variable depends on

Subject to the rules for assigning lengths, lengths that are assigned with the LENGTH statement can be changed in the ATTRIB statement and vice versa.


See Also

Previous Page | Next Page | Top of Page