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
What is inspect in cobol ?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you reference the fixed block file formats from cobol programs
what is the difference between COBOL2 AND COBOL390?
example for sub strings ? and refernce modifications whit output pls
what are decleratives in cobol?
How do u write test cases?
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
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?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
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.