| Other DB2 Interview Questions |
|| Asked @
|What will the FREE command do to a plan?
|For update of a row in cursors, when do we move value into
host variable in cobol progrm? is it before open or before
|What is read-only cursor?
|What are the three DB2 date and time data types and their
|Parm value passed is PARM=(10,20). how do code linkage
section and how would you add these two passes values and
show result in cobol program.
|In a Cobol-DB2 program, I am fetching rows from 4 tables
using cursor and then based on the a field present in that
table, It processes the information accordingly..for
example stat-c is one digit field..if stat-c is 'D' then
the a row is deleted from table and written those details
in to a file. If the stat-c is 'U' then a row is updated
(hardcoded what to update)in a table and written those
details in to a file. If the stat-c is 'I' then a row is
inserted in a table and written those details in to two
files. The issue is i have to include the intermediate
commits. When an abend occurs, due to commit statement db2
tables will be saved, But there will be lose of file
contents. When we resubmitting the job associated with this
program there will be insert ,update and delete anomolies
to avoid that what measures could be taken?.
The intermediate commit is nothing but issuing
commit after massive inserts, updates and deletes(sum of
|a cursor normally gets closed once we provide a commit . If
u try to close the same cursor with close cursor command
later after providing the commit will there be any sql-error.
|What are the three types of page locks that can be held?
|How does one remove entries from the SCT02 table?
|How to create a table using embedded sql?
|How to resolve the -305 error code in DB2?
And also please let me know, how to resolve the db2 error
|What information is used as input to the bind process?
|For more DB2 Interview Questions Click Here |