What is the meaning of 'TALLING' verb in cobol?

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


Please Help Members By Posting Answers For Below Questions

IF I mention stop run in CICS what happens?

1886


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.

1103


How do we get current date from system with century in COBOL?

792


how do you reference the variable unblock file formats from cobol programs

734


How do you differentiate between cobol and cobol-ii?

646






How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


Can we change the password using ALTER? anyone tried and changed?

1535


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


Which mode is used to operate the sequential file?

654


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1919


) How do u handle errors in BMS macro

1498


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?

5355


how do you reference the variable block file formats from cobol programs

674


what is the use of outrecord?

1765


Define cobol?

854