Custom trigger in sequence. DSJS.RUNNING

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
ramnishgupta
Participant
Posts: 13
Joined: Tue Nov 08, 2005 9:43 am

Custom trigger in sequence. DSJS.RUNNING

Post by ramnishgupta »

I am trying to sequence the below jobs.

Job1a Job2a Job3a

Job1---Ok--->Job2---Ok--->Job3

I want to start Job1a as soon as Job1 starts, Job2a as soon as Job2 starts and Job3a as soon as job3 starts.

To do this i created custom triggers on Job1, Job2, Job3

Job1.$JobStatus = DSJS.RUNNING
Job2.$JobStatus = DSJS.RUNNING
Job3.$JobStatus = DSJS.RUNNING

The sequence executes by running Job1, Job2 and Job3 but does not execute the custom trigger. Job1a, Job2a and Job3a do not run.
Anyone knows how to fix this?

Thanks.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can't as the Sequence will always do a 'WaitForJob'. You'd need to start the two jobs at the same time instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Simply remove the links. The jobs will then run at the same time.

Triggers are not checked until the job (or other activity) finishes.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply