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
Whats the difference between search & search ALL?
Differentiate between structured cobol programming and object-oriented cobol programming.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
Difference between cobol and cobol-ii?
What is the difference between next sentence and continue in cobol programing language?
) How do u handle errors in BMS macro
What are different data types in cobol?
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
How are the next sentence and continue different from each other?
What are the different rules for performing sort operation?
How you can characterize tables in cobol?
Write a cobol program making use of the redefine clause.
What is perform what is varying?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning