%LEN
Return the length of the data area
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
NSupported in Synergy .NET
|
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.