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
what is the difference between COBOL2 AND COBOL390?
What is the difference between Global and External Variables?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
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.
What is the difference between Call and a Link?
How arrays can be defined in COBOL?
What is the problem of ordered sequential files access?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Have you used comp and comp-3 in your project? And how?
What is difference between static and dynamic call in cobol?
What is redefines clause in COBOL?
Write down the divisions of cobol program?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What kind of error is trapped by on size error option?