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 / dk

Declare an array with PIC X.
check for every subscript whether it is not SPACES.
Count the occurrences for non space values.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A table has two indexes defined. Which one will be used by the SEARCH?

759


What rules are followed by the search verb.

638


how do you reference the rrds file formats from cobol programs

803


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


What is a report item?

741






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)?

635


how do you reference the fixed unblock file formats from cobol programs

712


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

1031


How do u write test cases?

1641


What are all the divisions of a COBOL program?

667


What is perform what is varying?

711


What is Pic 9v99 Indicates in COBOL?

730


What is the difference between binary search and sequential search?

643


Define static linking and dynamic linking.

669


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1616