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

Whats the difference between search & search ALL?

5258


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

663


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


Difference between cobol and cobol-ii?

704


What is the difference between next sentence and continue in cobol programing language?

706






) How do u handle errors in BMS macro

1505


What are different data types in cobol?

685


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2331


How are the next sentence and continue different from each other?

760


What are the different rules for performing sort operation?

757


How you can characterize tables in cobol?

710


Write a cobol program making use of the redefine clause.

725


What is perform what is varying?

701


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


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

676