SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT
HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO
PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.
Answer Posted / vinodh
ASSUME WS-NAME HAS 60 CHARACTERS
INSPECT WS-NAME TALLYING WS-COUNT CHARACTER 'A'
INSPECT WS-NAME REPLACING ALL 'A' BY 'E',
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
How to print 10 to 1 if the input have only 10 digit number?
What are various search techniques in cobol? Explain.
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 amode(24), amode(31), rmode(24) and rmode(any)?
What guidelines should be followed to write a structured cobol prgm?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How do you reference the fixed block file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the compute verb? How is it used?
A table has two indexes defined. Which one will be used by the SEARCH?
What are the different rules to perform a Search?
In COBOL programming, what is PERFORM? What is VARYING?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?