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

My cobol program(not having any sql statements) is calling another cobol program ( having sql statements), what is needed for compilation and run in jcls .

3 Answers   Cap Gemini, RBS,


What is dbrm in db2 database?

0 Answers  


What is the physical storage length of time data type?

0 Answers  


What is normalization and what are the five normal forms?

1 Answers  


How does coalesce work?

0 Answers  






What is QUIESCE?

2 Answers  


What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?

3 Answers  


If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1.select Ename from EMP wher Ename = 'raghava' 2.Select count(*) from EMP where Ename = 'raghava' What is SQLCODE shown up in SPUFI

4 Answers   ADP,


What will the DB2 optimizer do?

2 Answers  


how can we find nth max salary from A table

5 Answers   IBM,


What is cobol db2?

0 Answers  


Why do chiropractors use drop table?

0 Answers  


Categories