when we are trying to update db2 rows. if the program
abends . how we will know that the last successful update
row was

Answers were Sorted based on User's Feedback



when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / jagan

In SQLCA , we have field named SQLERRD . In SQLERRD(3) , the
no of rows successful updated (or) inserted can be found .

Is This Answer Correct ?    15 Yes 2 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / vinay srivastava

We can go in Abend Aid and look for the source listing where
we can find the last values stored in Host Variables where
the Job Abended.

Is This Answer Correct ?    1 Yes 0 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / lenin

In cobol program, we can create one counter after each
successful update. So by checking the counter value we can
find out howmany rows are updated.

Please correct me if i am wrong..

Is This Answer Correct ?    1 Yes 1 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / ramesh m

You can do the select query and in where condition, you
have to query for current timestamp for the particular row.

Is This Answer Correct ?    1 Yes 2 No

when we are trying to update db2 rows. if the program abends . how we will know that the last succ..

Answer / prachi

check for sqlca.sqlerrd[2] -
as it indicates the number of rows processed before the
error occurred in a multirow INSERT, UPDATE, or DELETE
statement.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More DB2 Interview Questions

What does a deadlock mean in DB2?

0 Answers  


What is difference between alias and synonym in db2?

0 Answers  


What are db2 objects?

0 Answers  


What is index cardinality?

3 Answers  


How does one bind 2 versions of a CICS transaction with the same module name in two different CICS regions that share the same DB2 subsystem?

2 Answers  






How to define the a field which accepts value till 99999.99 in db2

3 Answers  


wht r the requirements for writing a cobol-db2 pgm ?

4 Answers   IBM,


What is a Database Request Module(DBRM)?

4 Answers  


On which levels locks can be applied?

0 Answers  


How can you display the current date & current time ?

1 Answers   Cap Gemini,


Is it possible to precompile if db2 goes down?

4 Answers   Target,


4. A DB2 application is bound with uncommitted Read isolation level.It issues a request that retrieves 20 rows out of 200000 in the table. Which of the following descrbes the rows that are locked as a result of this request? a. None of the rows are locked. B.The retrieved rows are locked. C.The last row of the result set is locked. D.The rows not previously updated by another application are locked.

3 Answers   Wipro,


Categories