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

Since your talking about update , that will come after we fetch the fields from table so we Move the new value into the host variable after FETCH and immediately before the UPDATE ... WHERE CURRENT OF cursor statement.

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 ?    9 Yes 17 No

Post New Answer

More DB2 Interview Questions

why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2

3 Answers  


The only place of VSAM KSDS in DB2 is?

2 Answers   IBM,


What is the use of with ur in db2?

1 Answers  


Can we install 2 different versions of Db2 on same mainframe?

3 Answers  


How do we specify index to include or not during bind process.

1 Answers   Satyam,


How many sub queries can you combine together ?

4 Answers   IBM,


What is buffer pool?

1 Answers  


How do you check for a null value in a db2 column?

2 Answers  


Why select is not preferred in embedded sql programs?

1 Answers  


What does the REORG Utility do?

2 Answers  


Hi Team, Please tell me, If i don't declare the cursor in the program and i have given open and fetch and close, then what error will get.

6 Answers   IBM,


Explain dclgen.

1 Answers  


Categories