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



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

Answer / 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

More DB2 Interview Questions

When can an insert of a new primary key value threaten referential integrity?

2 Answers   Mind Tree,


How to execute stored procedure in db2 command editor?

0 Answers  


Explain about rct.

0 Answers  


how will you retrieve first record in table

1 Answers   UST,


What is phantom read in db2?

0 Answers  






How to define the data items to receive the fetch items for the SQL?

2 Answers  


i have one file having 100 of records? i want to display it like 20 records in one column and 20 records in another column total 40 records per page ? how ?

2 Answers   EDS,


What Utility is used to migrate DB2 from one release to the next?

1 Answers  


How to execute stored procedures?

0 Answers  


How would one remove old reorg information from the DB2 catalog?

2 Answers  


Can we insert update delete in view?

0 Answers  


What are the abend codes occour in ur latest PROJECT in DB2

2 Answers   Cap Gemini,


Categories