This example demonstrates obtaining the length of several strings.
STRING/ABC(10)
|
Function |
Assigned Value |
|
ABC='MESSAGE' |
|
|
ANS=LENF(ABC) |
ANS=7 |
|
ANS=LENF(' XYZ ') |
ANS=5 |
|
ANS=LENF('ABC DEF') |
ANS=7 |