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

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

643


What do you mean by rollback?

574


Comment whether the cursor is closed during commit or not.

676


what is the responsibility of the construction superintendent

1666


What is runstats and reorg in db2?

800






What is role in db2?

622


List out the three types of page locks that can be held.

689


What's The Error Code For Unique Index Voilation?

655


What is copy pending and check pending in db2?

580


Why do we bind in db2?

634


What is cobol db2?

570


define clustering index.

619


What are the different types of base tables?

587


What are the full forms of spufi and dclgen and why are they used?

658


Why do we use cursor?

599