%LEN (Get or Set Length)
%LEN(expression)
%LEN(varying-length expression : *MAX)
%LEN can be used to get the length of a variable expression, to set the current length of a variable-length field, or to get the maximum length of a varying-length expression.
The parameter must not be a figurative constant.
For more information, see Size Operations or Built-in Functions.