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
how do you reference the variable block file formats from cobol programs
how can i see junk values in dclgen or in hostvariable of comp ?
What is the Purpose of Pointer in the string?
For rewrite, why is it mandatory that file needs to be opened?
Why would you use find and get rather than to obtain?
How do you reference the following file formats from cobol programs?
What is redefines clause in COBOL?
What are the different rules of SORT operation?
What is report-item in COBOL?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is the difference between external and global variables in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..