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 / vikas pujar
We can use Inspect to accomplish this.
1) Inspect ws-var tallying ws-count for all spaces.
Here number of spaces will come and sit in ws-count, by deducting it with length of variable will get number of characters.
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
What is length is cobol?
What are the pertinent COBOL
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between Call and a Link?
Can you please let me know the centre name of INS certification in Kolkata.
what is the difference between COBOL2 AND COBOL390?
HOw can I get the negative sign while deduct high value from low value
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 comp-1 and comp-2?
) How do u handle errors in BMS macro?
What is the difference between next sentence and continue in cobol programing language?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how do you reference the ksds vsam file formats from cobol programs