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
Can you please let me know the centre name of INS certification in Kolkata.
how do you reference the ksds vsam file formats from cobol programs
What is cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is the difference between COBOL2 AND COBOL390?
What is amode(31)
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
In COBOL programming, what is PERFORM? What is VARYING?
What is the difference between perform … with test after and perform … with test before?
What is perform what is varying?
how do you reference the fixed unblock file formats from cobol programs
What is the Purpose of Pointer in the string?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?