%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
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.

%LEN is functionally identical to the ^SIZE data reference operation in traditional Synergy. %LEN and LEN are available only for compatibility with older versions of Synergy DBL; we highly recommend that you use ^SIZE, which is more efficient than %LEN or LEN.

See also

^SIZE.