what is the difference between declaring the cursor in WS
section and Procedure division?

Answer Posted / madhavi chava

As definition of cursor is non executable statement, it is
advisable not to define in procedure division as it may
misunderstood others.

we can define it any where only thing you have to take care
is definition of cursor should be prior to the OPEN
statement of the same cursor.

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about open switch business continuity software?

563


What is database manager in db2?

551


How do I add a column to a table in db2?

618


What is netezza database?

573


How can you count the number of rows from a table tab?

637






How to find the number of rows in a db2 table?

644


What is explain plan in db2?

589


What is cobol db2?

568


What is bind in db2?

604


Explain about rct.

650


What are the different types of base tables?

585


What are union and union all?

539


What is consistency token in db2?

640


What is dbrm?

644


Is db2 free?

684