Answer Posted / varun v
It would be more if we explain with some example.
Lets use the variable used in Ans #1.
01 ws-variable pic x(10) value 'raja ramesh'
Now to get the total count of R's in 'raja ramesh', we can
use Inspect Tallying command.
INSPECT ws-variable TALLYING WS-TALLY1 FOR ALL 'R'.
Where WS-TALLY1 is a working storage variable which gives
the total count of R'S (Here WS-TALLY1 should be 2)
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the pertinent COBOL
What is the difference between comp and comp-3?
What is the difference between Global and External Variables?
what are decleratives in cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
When is inspect verb is used in cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
how to refer the data field?
What is the LINKAGE SECTION used in COBOL?
Can a Search can be done on a table with or without Index?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
How do you reference the fixed block file formats from cobol programs
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Describe the cobol database components?