For update of a row in cursors, when do we move value into
host variable in cobol progrm? is it before open or before
fetch ?

Answers were Sorted based on User's Feedback



For update of a row in cursors, when do we move value into host variable in cobol progrm? is it be..

Answer / azharuddinsyed

in Open, the sql query you have coded in declare cursor will be executed.
in Fetch, the table column values will be moved to corresponding host variables.

Is This Answer Correct ?    0 Yes 0 No

For update of a row in cursors, when do we move value into host variable in cobol progrm? is it be..

Answer / tarun

The query in a cursor in executed only when the cursor is opened. Thus you have to move the values in the host variables before opening the cursor.

Is This Answer Correct ?    8 Yes 17 No

Post New Answer

More DB2 Interview Questions

Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?

1 Answers  


how will you retrieve first record in table

1 Answers   UST,


What is the latest version of ibm db2?

0 Answers  


Q3. How will you fetch duplicate values from a DB2 table?

2 Answers   RBS,


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

0 Answers  






What is an alias and how does it differ from a synonym?

3 Answers  


What is an instance database?

0 Answers  


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

2 Answers  


What is Reorg Recovery? when will you run it?

2 Answers  


What is the use of dclgen in db2?

0 Answers  


What is dbrm in db2 database?

0 Answers  


What is a result table?

1 Answers  


Categories