PERFORM ACCUMULATE-TOTALS
VARYING A FROM 1 BY 2 UNTIL A >2
AFTER B FROM1 BY 1 UNTIL B>2
AFTER C FROM 2 BY -1 UNTIL C<2
How many times the paragraph ACCUMULATE-TOTALS would be
exicuted?
Answer Posted / shan
looping happens for following values of
A, B, C
1, 1, 2 = 1st
1, 2, 2 = 2nd
2, 1, 2 = 3rd
2, 2, 2 = 4th
So totally four times this will get executed
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Write a cobol program making use of the redefine clause.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Write some characteristics of cobol as means of business language.
What are all the divisions of a COBOL program?
What do you understand by psb and acb?
how do you reference the printer file formats from cobol programs
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
When is inspect verb is used in cobol?
what is search and searchall?what is the diffrence between them?give an best example?
What is the difference between PIC 9.99 and PIC9v99?
How arrays can be defined in COBOL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
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 ......
What is cobol?