Answer Posted / 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 |
Post New Answer View All Answers
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
What is the use of intialize verb?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Describe the cobol database components?
Write the code implementing the perform … varying.
what is amode(24), amode(31), rmode(24) and rmode(any)?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
what is the use of outrecord?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
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?
What is the difference between structured cobol programming and object alternativelyiented cobol?
IF I mention stop run in CICS what happens?