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

what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


How to retrive the 9th records out of ten records using the cobol program ?

3 Answers   UST,


How can you display the SPOOL information ?

2 Answers  


Explain what you understand by passing by value.

0 Answers  


If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

8 Answers   UST,






i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


Explain about different table spaces.

0 Answers  


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,


What are the pertinent COBOL

0 Answers   IBM,


A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


How do you define a variable of comp-1 and comp-2?

0 Answers  


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

0 Answers  


Categories