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 can we know that cobol program is using report file or simple file....?
What is the difference between SEARCH and SEARCH ALL?
IF I mention stop run in CICS what happens?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
can I copy book which contain db2 statment in procedure divion?
i WANT ALL ERROR codes IN CICS and DB2
What is the difference between SEARCH and SEARCH ALL? What is more efficient?
what is a load module ?
how we can edit records in vsam data set and non vsam data sets
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
what is linkcard in cobol?
What do you understand by passing by reference and passing by content?