1) I have 3 programs : PGMA, PGMB, PGMC. PGMA calls PGMB
and PGMB calls PGMC. I have to do inserts, updates in all
the 3 pgms.
2) Say PGMC has done its work successfully and returned to
PGMB
3) PGMB had an SQL error while doing some update
4) PGMA has already done some updates before calling PGMB
all are running under the same CICS region.
What will happen if I issue SYNCPOINT ROLLBACK in PGMB when
it abends ? Does all the changes in PGMA,B,C rollback ?
(because all the pgms belong to same task).
Answer Posted / akbar.
SYNCPOINT ROLLBACK will rollback to the last COMMIT point
that has been made after any update in the same task.
Having said that, if PGMA and/or PGMC, in this case have
updated the database, has/have used COMMIT after their
respective updates, then ROLLBACK of PGMB after abend would
return to the very recent COMMIT made by either of the two
programs PGMA or PGMC.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between db2 and oracle?
Explain in brief how does db2 determine what lock-size to use?
What is blu acceleration in db2?
What are the uses of db2 optimizer?
Can you use max on a char column?
Can there be more than one cursor open for any program?
How will you return the number of records in table?
How can you classify the locks in db2?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
What is buffer pool in the db2 database?
Why db2 is called db2?
What is consistency token in db2?
What is netezza database?
Can we insert update delete in view?
How does db2 sample database connect?