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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inspect in cobol ?

806


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


How do you reference the fixed block file formats from cobol programs

709


what is the difference between COBOL2 AND COBOL390?

2455






example for sub strings ? and refernce modifications whit output pls

1847


what are decleratives in cobol?

1831


How do u write test cases?

1641


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1962


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1234


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


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

8662


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


What is the difference between a binary search and a sequential search what are the pertinent cobol?

737


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2061