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
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 |
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 |
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 .
What is dbrm in db2 database?
What is the physical storage length of time data type?
What is normalization and what are the five normal forms?
How does coalesce work?
What is QUIESCE?
What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?
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
What will the DB2 optimizer do?
how can we find nth max salary from A table
What is cobol db2?
Why do chiropractors use drop table?