I have a DB2 table which has 1000 rows.after udatingg first
110 rows, my job abends. Now what I have to do if I want to
restart the job next time so that it should start updating
from 111th row (without updating first 110 rows again).

Answer Posted / shashi

Instead of commiting at the last point, commit at certain
intervals (increase the frequency of commit, say after
every 100 records in this situation)

Create one temporary table with a dummy record and insert
one record into the table for every commit with key and
occurance of commit. And this insertion should happen just
before the issue of commit.

And in the procedure division, first paragraph should read
the last record of the table and skip the records that are
already processed and committed. After processing all the
records delete the entries in the table and issue one final
commit.

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is copy pending status in db2?

634


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

655


What are the different types of base tables?

583


What is null indicator in db2?

599


Which command is used to connect to a database in DB2 ? Give the Syntax.

598






What is bind package and plan in db2?

591


What is dbrm? When it will be created?

594


What is the physical storage length of date data type?

722


Can you tell me how can you find out the # of rows updated after an update statement?

604


What is the use of predicate?

580


Name the lockable units in DB2?

661


B37 abend during spufi?

978


What does db2 blu stand for?

658


Why do we need reorg in db2?

558


What do you mean by storage group (stogroup)?

578