Chapter Contents

Previous

Next
LENGTH

LENGTH


Specifies how many bytes SAS uses to store a variable's value

Valid: in a DATA step
OS/390 specifics: length of numeric variables


Syntax
See Also

Syntax

LENGTH variables <$> length . . . <DEFAULT=n >;

Note:    This is a simplified version of the LENGTH statement syntax; see SAS Language Reference: Dictionary for the complete syntax and its explanation.  [cautend]

length
can range from 2 to 8 for numeric variables and from 1 to 32,767 for character variables.

n
changes from 8 to n the default number of bytes that SAS uses for storing the values of newly created numeric variables. Under OS/390, n can range from 2 to 8.


See Also


Chapter Contents

Previous

Next

Top of Page

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