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 |
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 |
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 |
why db2 is called as universal database?what is the storage capacity of db2v9 n what are the advantages of db2
The only place of VSAM KSDS in DB2 is?
What is the use of with ur in db2?
Can we install 2 different versions of Db2 on same mainframe?
How do we specify index to include or not during bind process.
How many sub queries can you combine together ?
What is buffer pool?
How do you check for a null value in a db2 column?
Why select is not preferred in embedded sql programs?
What does the REORG Utility do?
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.
Explain dclgen.