how can count the number of character in feild ?? suppose
for instance i have a feild with value ' rajesh sarkar'
then how can v count the number of characters whitout
spaces...........

Answer Posted / akviswa

1. Count the length of the string
2. Move the value of WS-IND to 1
2. perform until the length of the string=0
a. If string(ws-ind:1) <> spaces
Increment the counter for count
end-if
b. Decrement the length of string and increment WS-IND
end-perform

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) How do u handle errors in BMS macro

1698


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2126


What is a scope terminator give example?

830


how to refer the data field?

1987


what is difference between cobol and cobol/400

22126


HOw can I get the negative sign while deduct high value from low value

2005


How arrays can be defined in COBOL?

832


What is static and dynamic call in cobol?

783


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

847


What type of SDLC u followed? Why?

1720


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

842


How do u write test cases?

1818


Write some characteristics of cobol as means of business language.

836


What is the difference between binary search and sequential search?

854


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8669