Can you use a select query in a loop to fetch multiple rows?
If so what is the advantage of using a cursor?

Answer Posted / azharuddinsyed

No. In cobol-db2 program, the result of single select should be only one row.
For multi row fetch we must use cursor, else program will abend with -811 sql code.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Highlight all the advantages that are attached to a package.

629


What is the clustering index in the db2 database?

585


What is the difference between oracle and db2?

587


What is the maximum size of a char data type in db2?

588


What is drop table?

584






What is the difference between bind and rebind in db2?

858


Explain the benefits you can get from mainframe connect?

522


Which are the db2 tools to protect integrity of the database?

692


What are the two types of logging in the db2 database? Explain them.

582


Explain about dbrm.

609


What is a system catalog table in db2?

589


Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.

2324


What db2 400?

679


How do I import a csv file into db2?

562


What is meant by explain?

662