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
What is the difference between goback, stop run and exit program in cobol?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Define static linking and dynamic linking.
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How to remove 2 duplicate records and copy only one using job control language?
HOw can I get the negative sign while deduct high value from low value
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
how can i see junk values in dclgen or in hostvariable of comp ?
How arrays can be defined in COBOL?
What are the different rules to perform a Search?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What do you understand by psb and acb?