Previous Page | Next Page

Functions and CALL Routines

VLENGTH Function



Returns the compile-time (allocated) size of the specified variable.
Category: Variable Information
Restriction: Use only with the DATA step

Syntax
Arguments
Comparisons
Examples
See Also

Syntax

VLENGTH (var)


Arguments

var

specifies a variable that is 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

Previous Page | Next Page | Top of Page