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
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Define cobol?
What are the rules of the move verb?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How are the next sentence and continue different from each other?
Are you comfortable in cobol or jcl?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Explain what you understand by passing by value.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the LINKAGE SECTION used in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How do u write test cases?
how to convert the recors form vsam file to db2 table tru file aid