Clicky
Skip to Content
Custom Search

Reply to comment

Anonymous

 

 

 

 

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
 
 
Regards
Deepak

Reply

  • Allowed HTML tags:
      1. Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Navigation

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Number of Registered users 714
Theme by Dr. Radut.