How many times the loop runs here
01 a pic 9(2) value 1.
perform para1 until a=10
move 1 to a.
stop run.
para1:
move 10 to a.
Answer Posted / vinod
it dirctly move 10 to a when perform para1 until a=10
after that it moves to the para the condition is checked
and pass the a value to 10.
again the perform is check the condion its true move the
value to 1.agin it passes the same so it is a infinite loop.
| Is This Answer Correct ? | 3 Yes | 23 No |
Post New Answer View All Answers
Write a program to explain size error.
What is the use of intialize verb?
What is a report item?
What is the compute verb? How is it used?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
how do you reference the printer file formats from cobol programs
What is the LINKAGE SECTION used in COBOL?
how do you reference the variable unblock file formats from cobol programs
how do you reference the rrds file formats from cobol programs
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
For rewrite, why is it mandatory that file needs to be opened?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What are the access modes of START statement?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Can we redefine the field of x(200) to less than 200?