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.
Answers were Sorted based on User's Feedback
Answer / priyanka
Para1 would be executed 1 time. after 1st time the value of
a is 10 and it comes out of loop.
it move 1 to a and stop execution.
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / vikas
Just once. The 'move 1 to a' is not in the para1. So its is NOT infinite loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / harish
It depends on two coditions with PERFORM WITH TEST BEFORE/AFTER.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
what is mainframe? what is the mainframe software ? what is use in s/w field?
wirte a pgm in using files in which we hav 10 ,20,30 40...100 records in inputfile and i want them to be send to outputfile in reverse order. PLZ HELP ME OUT .........THIS IS A RECENT QUESTION IN IGATE..
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
how do you reference the rrds file formats from cobol programs
01 a pic 9(6) value is 123456 01 b pic 9(3) move a to b wht will be the value ?
Without using move verb how to move one variable to another.
Why occurs can not be used in 01 level ?
How many bytes S(8) comp field occupy and its maximum value?
How to use the same cobol program in Batch and CICS onlines ? Please expalin with an example. Thanks in advance.
How To move a value to an array using move verb?