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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / thomas vt

the right word is "TALLYING" and not "talling"

TALLYING IS THE COUNT OR NO OF OCCURANCES OF A CHARACTER IN
A STRINg.

for eg:
01 name pic x(7) value 'SUCCESS'
01 count pic 9(2).

INSPECT name TALLYING count FOR ALL 'S'.

and the result will be 3 in the variable "count".

Is This Answer Correct ?    5 Yes 1 No

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

Answer / guest

tallying is ued for counting the lettlers..
it is ued in Inspect statement


ex: 01 ws-variable pic x(10) value 'raja ramesh'

if u want count the letter "r' count. u can use the
talyying variable...

please let me now if u need any clarifiaction on this..


raki_9@yahoo.co.in

Is This Answer Correct ?    1 Yes 0 No

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

Answer / pradeep

TALLYING IS THE COUNT OR NO OF OCCURANCES OF A CHARACTER IN
A STRING WHILE USING INSPECT AND {EXAMINE(74 STANDARD)} ARE
USED.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / ramu

tallying is a register is used to store the matching
characters count in a string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the middle of the program B control wants to go program C,after completion of program C again control comes to program B and again after completion of program B control comes to program A.How the process will takes and what are the controls we use for that process.If it is possible anybody of you explain with example?

5 Answers   IBM,


How to resolve the soc4 and soc7 errors?

5 Answers   IBM, RBS,


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .

4 Answers   IBM, Syntel, TCS,


where do we use dyanamic call ? and where do we use static call pls give any example pls ?

3 Answers   Patni,






If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


Can we use redefine clause in occurs clause?

10 Answers  


hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps

5 Answers   iNautix,


If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


What care has to be taken to force program to execute above 16 Meg line?

1 Answers  


Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???

5 Answers   IBM,


Categories