Chapter Contents

Previous

Next
VLENGTH

VLENGTH



Returns the compile-time (allocated) size of the specified variable

Category: Variable Information


Syntax
Arguments
Comparisons
Examples
See Also

Syntax

VLENGTH (var)

Arguments

var
specifies a variable, expressed as a scalar or as an array reference.
Restriction: You cannot use an expression as an argument.


Comparisons


Examples

SAS Statements Results
length x $8;
x='abc';
y=vlength(x);
z=length(x);
put y=;
put z=; 
 



y=8
z=3


See Also

Functions:

"Variable Information" functions in Functions and CALL Routines by Category


Chapter Contents

Previous

Next

Top of Page

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