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
What is the usage of comp fields in cobol?
how do you reference the fixed unblock file formats from cobol programs
what is difference between cobol and cobol/400
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
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)?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are various search techniques in cobol? Explain.
Define static linking and dynamic linking.
Can we change the password using ALTER? anyone tried and changed?
What is perform what is varying?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
IF I mention stop run in CICS what happens?
What is the compute verb? How is it used?
Difference between array and sub-script ?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue