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.
Answers were Sorted based on User's Feedback
Answer / 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 |
What COBOL construct is the COBOL II EVALUATE meant to replace?
Difference between array and sub-script ?
can we use full outer join with cursors declared in cobol program?
comp-3 field occupy?
How many maximum number of procedures can we write in one COBOL program?
Why did you choose to work with ibm mainframe cobol programming?
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
How can we increase the size of an existing PDS to include more no. of modules.
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.