$Len
The $Len function determines the current length of the value of a String. The $Len function takes a field name, character literal, or %variable as its one argument.
Examples
- The $Len result in the following statement is 4 if the
STATE
field of the current record containsOHIO
:%n = $len(STATE)
- The $Len result in the following statement is 13 if the
%name
variable has a current value ofRichard Smith
:%n = $len(%name)