I have to find the length of a string. Lets say the variable is defined as
01 WS-EMP-NAME PIC X(20).
Now this employee name may have a name as small as "DEEPAK"
so if I find the length of this variable using
COMPUTE LENGTH OF WS-EMP-NAME
then I would get the length as 20, while I am looking for the
exact length of item contained in the variable i.e 6 as in this case
Deepak"; ; ; ;