Can we declare cursor in Procudere division or open the
cursor in the Working storage section.

Is there any particular rules in the usage of cursors lifecycle

Answer Posted / omkar panda

yes we can declare cursor in procedure division but we cant
open the cursor in working-storage section as it is an
executabale statement.the lifecycle of cursor is as below
1>declare cursor
2>open cursor
3>fetch cursor
4>close cursor

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clone table?

592


Where do you specify them?

681


What is a buffer in memory?

600


What is the use of with ur in db2?

615


What db2 400?

679






What is a trigger in the db2 database?

596


Comment whether the cursor is closed during commit or not.

676


What are bind parameters in db2?

613


What is runstats and reorg in db2?

800


How do I add a column in db2?

595


What is the difference between spufi and qmf?

639


What is the meaning concurrency in the db2 database?

634


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1820


How do we specify index to include or not during bind process.

1674


What parameters are used to control the free space in DB2?

642