Can we use select query in a loop to fetch multiple rows in
a COBOL PROGRAM? If so, what is the advantage of cursor?



Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the adv..

Answer / hitendra valluri

As per my knowledge if we loop the select query it retrieves the same data untill we explicitly handle the where clause to retrieve the rows. Unlike select CURSOR fetches all the rows and allows the program to process 1 at a time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB2 Interview Questions

How do you run JCL in cobol program

1 Answers   IBM, Syntel,


How we create a tables in DB2 ?Previously client has using 7 letters for user id,now he wants to increase the letters from 7 to 12 for user id.How we can do it?

6 Answers   Wipro,


How to resolve -805 error in DB2?

1 Answers   Cap Gemini,


How can you quickly find out the number of rows updated after an update statement?

1 Answers   CSI, CTS,


What is db2 and what is the use of db2 optimizer?

1 Answers  


what is plan? is plan executable or package?

4 Answers  


Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?

1 Answers  


In cobol+DB2program if the code of cobol program has changed than i have to do precompilation once again?

6 Answers   TCS,


Lot of updates have been done on a table due to which indexes have gone haywire. What do you do?

2 Answers  


Explain transactions, commits and rollbacks in DB2.

3 Answers  


How is the SUBSTR keyword used in sql?

1 Answers  


What is deadlock in db2?

1 Answers  


Categories