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
What is the difference between external and global variables in COBOL?
What is a scope terminator give example?
how do you define single dimensional array and multidimensional array in your cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
how do you reference the variable unblock file formats from cobol programs
Write a program to explain size error.
What do you understand by psb and acb?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
HOw can I get the negative sign while deduct high value from low value
What is redefines clause in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How many sections are there in data division in COBOL?