Cursors can be declared in both working-storage & procedure
division, Agreed.
But is there any difference? If could you please suggest
what is the difference.
TIA

Answer Posted / ns

There is no difference. But it is always better to declare
Cursor in Working-Storage Section because you will not code
Open Cursor before Declare Cursor by mistake. It is just a
standard to declare Cursor in WSS. As best practice to
avoid oversight.

Is This Answer Correct ?    28 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data manager?

607


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

746


What is runstats utility in db2?

569


What is the use of dclgen in db2?

588


What is syscat in db2?

574






What is the use of value function?

625


What is the purpose of rollback and commit?

594


Where do you specify them?

681


What type of database is db2?

523


Is db2 a mainframe database?

567


Mention the downsides of page level lock.

707


List some fields from sqlca?

612


How many databases can be created inside an instance in db2 ?

599


Can you tell me how can you find out the # of rows updated after an update statement?

610


What is isolation level in db2?

577