Lexical operator for determining the length of a string. Format %LENGTH (string)
1 – Argument
string The single argument, of type string, is the string from which the length is to be computed.
2 – Description
%LENGTH is modeled after VAX MACRO's %LENGTH macro string operator and the OpenVMS DCL lexical function F$LENGTH. %LENGTH is used to determine the length of a string. The result is the length of the string expressed as a decimal number.
3 – Example
.PRINT "%LENGTH(<The quick brown fox>)" After lexical processing, the statement appears as: .PRINT "19"