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

Answer Posted / mehdee

Example:
EXEC SQL
FETCH AA_CURS
INTO :Host-name1, Host-name2, ...
EXEC-END

Note: Host-names listed are one to one related to the
Columns at DECLARE AA_CURS, and are INCLUDEed from it's
DB2 DECLGEN name in the program.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give a brief description of db2 isolation levels?

613


What is the meaning concurrency in the db2 database?

644


What is image copy in db2?

578


How do I optimize a query in db2?

632


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

1632






Explain the contention situations caused by locks?

600


How does coalesce work?

592


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

763


What are the contents of a dclmgen?

638


Explain in detail about buffer manager and its functionalities?

572


What does reorg do in db2?

584


What is cursor in dbms?

598


What is the purpose of using commit?

627


What is the maximum size of varchar data type in db2?

649


How can record locking be achieved in those DB2 versions which do not support it?

630