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
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Write some characteristics of cobol as means of business language.
What is comp-1 and comp-2?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is rmode(24)
What are the rules of the move verb?
What is static and dynamic call in cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is a SSRANGE and NOSSRANGE?
What is rmode(any) ?
How many sections are there in data division in COBOL?
Explain about different table spaces.