achieving the seq

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sankar18
Participant
Posts: 34
Joined: Mon Dec 16, 2002 1:18 am

achieving the seq

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
Post Reply