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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between goback, stop run and exit program in cobol?

929


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


What type of SDLC u followed? Why?

1520


What is the difference between external and global variables in COBOL?

813


Explain about different table spaces.

650






Which mode is used to operate the sequential file?

669


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8656


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2659


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876


Whats the difference between search & search ALL?

5264


What are the cobol coding sheets?

664


State the various causes of s0c1, s0c5 and s0c7.

664


Name the divisions, which are available in a cobol program?

685


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

689