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
HOw can I get the negative sign while deduct high value from low value
What is a scope terminator give example?
What is rmode(24)
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
IF I mention stop run in CICS what happens?
What is a report item?
how do you reference the variable block file formats from cobol programs
How do you reference the following file formats from cobol programs?
Are you comfortable in cobol or jcl?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the usage of comp fields in cobol?
What is Pic 9v99 Indicates in COBOL?
What are the rules of the move verb?
What is the difference between comp and comp-3 usage?