IBM DB2 Question: Download IBM DB2 PDF

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

Tweet Share WhatsApp

Answer:

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.

Download IBM DB2 PDF Read All 32 IBM DB2 Questions
Previous QuestionNext Question
Is it Possible to declare or create a cursor for UPDATE of
table? If yes tell me how? If no Tell me why?
If I have 5 Queries in a DB2 Cobol program , while
precompiling how many DBRMs will get created and How many
Plans and Packages will get created while Bind Process?