Page 1 of 1

achieving the seq

Posted: Sat Jan 04, 2003 12:56 am
by sankar18
Hi All

In a seq 1, runs a job1, if job1 executed successfully, it will execute seq 2,runs job2, if job2 executed successfully, it will execute seq 3,runs job3, if seq 3 is warning,i need rollback the action took in job2. In job2 i am updating a flatfile, i want to rollback the update.

Thanks in Advance,
T Sankar

Posted: Sat Jan 04, 2003 3:41 pm
by ray.wurlod
If job 2 commits, that's that - it's committed.
You would need to redesign to put job3 into seq2, so that its start can be conditional on success of job2 AND somehow you must record the updates that occurred (were committed) in job2 so that they can be undone. They can't be rolled back unless you take control of transaction handling (establishing an outer transaction), possibly through BCI functions in Routines, which is really difficult given that different stages can, and different jobs and sequences do, run in separate processes.