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



How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

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

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / guest

1 time

Is This Answer Correct ?    15 Yes 2 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

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

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / harish

It depends on two coditions with PERFORM WITH TEST BEFORE/AFTER.

Is This Answer Correct ?    0 Yes 0 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

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

Post New Answer

More COBOL Interview Questions

How can we know that cobol program is using report file or simple file....?

4 Answers  


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


IF I mention stop run in CICS what happens?

0 Answers   IBM,


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

0 Answers  


can I copy book which contain db2 statment in procedure divion?

2 Answers   Bank Of America,






i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


What is the difference between SEARCH and SEARCH ALL? What is more efficient?

9 Answers   IBM, iFlex, Wipro,


what is a load module ?

3 Answers   TCS,


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


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

1 Answers  


what is linkcard in cobol?

1 Answers   TCS,


What do you understand by passing by reference and passing by content?

1 Answers  


Categories