what is the difference between declaring the cursor in WS
section and Procedure division?
Answer / madhavi chava
As definition of cursor is non executable statement, it is
advisable not to define in procedure division as it may
misunderstood others.
we can define it any where only thing you have to take care
is definition of cursor should be prior to the OPEN
statement of the same cursor.
| Is This Answer Correct ? | 18 Yes | 1 No |
My DB2 program first read the data from a file and then it look into a table with the data it got from the file.If we did not bind the program , should the file read before SQL execution be success??
Where is the output of EXPLAIN stored?
How do run the JCL which has 25 steps by skipping the following steps 5, 10,15 and 25 without using COND statement
How is a typical DB2 batch program executed ?
When you are working with the project after coding what will u do? Like what type of documents u will prepare? How will u do testing?
how will you retrieve first record in table
What is ibm db2 used for?
what will be the output of the below given query, if no matching records are found : (a.) 0 (b.) null (c.) error select Avg(salary) from TableA where Deptno = 'insurance'
DB2: A calls B once sucessfull and second time when it calls says curson is open why is it so?
Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?
What is meant by the attachment facility?
what is the difference between declaring the cursor in WS section and Procedure division?