How many times the loop runs here
01 a pic 9(2) value 10.
perform para1 a times
stop run.
para1:
move 20 to a.

Answers were Sorted based on User's Feedback



How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1:..

Answer / suresh

it performs 10 times only it donot change while looping

Is This Answer Correct ?    14 Yes 3 No

How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1:..

Answer / shiva

initally a=10
perfrm para1 a(10) times
move 20 to a...so now a=20

now again perform para1 a(20)times
and loop goes on
hence infinite loop

Is This Answer Correct ?    3 Yes 5 No

How many times the loop runs here 01 a pic 9(2) value 10. perform para1 a times stop run. para1:..

Answer / guest

infinite loop

Is This Answer Correct ?    5 Yes 12 No

Post New Answer

More COBOL Interview Questions

What is normalisation?

2 Answers   IBM,


i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..

5 Answers   IBM,


How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.

16 Answers   IBM, TCS,


How do get the result of your program directly on your pc?

0 Answers   UST,


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,






How can you declare the file ?

1 Answers   Wipro,


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

0 Answers   IBM,


Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?

1 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,


How is sign stored in a comp-3 field?

7 Answers  


In INITIALIZE what is Repalcing Word will do

1 Answers   CTS,


Categories