Chapter Contents

Previous

Next
LENGTH

LENGTH



Specifies the number of bytes the SAS System uses to store numeric variables

Valid: in a DATA step
Windows specifics: Valid numeric variable lengths; valid values for length; valid values for n


Syntax
Details
See Also

Syntax

LENGTH <variable-1><...variable-n> <$> <length> <DEFAULT=n>;

length
Under Windows, can range from 3 to 8 bytes for numeric variables.

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. Under Windows, the value of n can range from 3 to 8 bytes.


Details

The LENGTH statement specifies the number of bytes the SAS system is to use for storing values of variables in each data set being created.

CAUTION:
Any length less than 8 bytes may result in a loss of precision for the value of the variable.   [cautionend]

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.