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
What rules are to be followed while using the corresponding options?
In COBOL programming, what is PERFORM? What is VARYING?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is amode(31)
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Why did you choose to work with ibm mainframe cobol programming?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how to convert the recors form vsam file to db2 table tru file aid
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Have you used comp and comp-3 in your project? And how?
What are declaratives and what are their uses in cobol?
What is the utilization of copybook in cobol?
Write a program to explain size error.
Describe the cobol database components?
Which Search verb is equivalent to PERFORM…VARYING?