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
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
how to refer the data field?
What the difference is between continue and next sentence?
What is the problem of ordered sequential files access?
Differentiate between structured cobol programming and object-oriented cobol programming.
What are the access modes of START statement?
What is the compute verb? How is it used?
Explain the configuration section of a cobol program with examples of syntax.
What is the difference between PIC 9.99 and 9v99 in COBOL?
Describe the cobol database components?
Difference between array and sub-script ?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Explain about different table spaces.
What are the different data types in cobol?
What are various search techniques in cobol? Explain.