%LEN

Return the length of the data area

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
Note

The %LEN routine is deprecated; we recommend you use the ^SIZE data reference operation instead. It is more efficient than either %LEN or LEN.

length = %LEN(variable)

or

xcall LEN(length, variable)

Return value

length

The variable that will be loaded with the length of the specified variable. If the variable is a null argument, a length of -1 is returned. (n)

Arguments

variable

A variable whose length will be returned. (a or n)

Discussion

%LEN returns the length of the data area referenced by the specified variable.