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


Please Help Members By Posting Answers For Below Questions

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

686


how to refer the data field?

1812


What the difference is between continue and next sentence?

665


What is the problem of ordered sequential files access?

704


Differentiate between structured cobol programming and object-oriented cobol programming.

669






What are the access modes of START statement?

719


What is the compute verb? How is it used?

665


Explain the configuration section of a cobol program with examples of syntax.

661


What is the difference between PIC 9.99 and 9v99 in COBOL?

737


Describe the cobol database components?

683


Difference between array and sub-script ?

1169


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


Explain about different table spaces.

652


What are the different data types in cobol?

801


What are various search techniques in cobol? Explain.

650