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
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
In COBOL programming, what is PERFORM? What is VARYING?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What are the different rules of SORT operation?
What is rmode(any) ?
What are the pertinent COBOL commands?
What is the utilization of copybook in cobol?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What rules are followed by the search verb.
What are the different data types in cobol?
What rules are to be followed while using the corresponding options?
how to convert the recors form vsam file to db2 table tru file aid
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?