Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the cobol picture clause of the db2 data types date, time, timestamp?

1120


What is concurrency?

1303


Which component is responsible for db2 startup and shutdown?

1083


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3632


What is buffer pool and list some of them?

1092


How to find primary key of a table in db2?

1113


What is reorg?

1239


What is bind plan?

1095


How connect db2 database to datastage?

1289


What is null in db2?

1068


SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

11743


What is access path in db2?

1042


What is the maximum size of varchar data type in db2?

1175


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1135


Define sqlca.

1166