Suppose we are doing transaction in a table and abend happened in
between. Suppose i have completed the transaction upto X rows and
I want to start the transaction again where the abend happened. I
don't want to do the transaction from the first record. Then what
i have to do.

Answer Posted / sridhar

The way handle this is to mmaintain a seperate table in the
database with the columns like transaction id and key for
abend. Whenever abend happens the key and transaction type
has to be written to that table. The embeded sql where
clause has to be written in such way that it will allways
pick up the key from that table with >= option. If no key
is available then the where clause should be populated with
the key program has asked for.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which component is responsible for processing sql statements and selecting access paths?

665


What do you mean by cursor?

582


When the like statement is used?

636


Why do we need reorg in db2?

560


What is db2 bind?

636






What is dbrm?

636


DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences?

2276


What is the difference between bind and rebind in db2?

848


Explain the function done by data manager?

853


What is db2 bind process?

753


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

626


What is the clustering index in the db2 database?

582


What is a trigger in the db2 database?

592


When reorg is used?

670


What is db2 catalog database?

582