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 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?
Explain about different table spaces.
Write some characteristics of cobol as means of business language.
i want a program using by if, evaluate , string, unstring, perform, occurs?
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 do you reference the ksds vsam file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.
Difference between cobol and cobol-ii?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
How do u write test cases?
What is comp-1 and comp-2?
what is the difference between COBOL2 AND COBOL390?
How many sections are there in data division in COBOL?
What is the LINKAGE SECTION used in COBOL?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?