Data stage job triggered by event

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
berettae
Participant
Posts: 5
Joined: Tue Jan 21, 2003 11:57 am
Location: Italy

Data stage job triggered by event

Post by berettae »

We need to launch a job (Data Stage XE 5.1, UX)when a certain event occurs.

Scheduling features don't seem to be a solution since jobs can be scheduled waiting for an event to happen (eg. file trasmission), but we don't know how to automatically reschedule jobs after the first execution.

Anybody has some suggestion?

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

Post by chulett »

Look in your 'DataStage Server Job Developer's Guide'. Near the back (Chapter 14?) there is a section documenting the 'Command Line Interface' which your triggering event can use to launch DataStage jobs.

-craig
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need to think this through VERY CAREFULLY.
Is the event likely to occur twice in close succession? What do you propose should happen if the first start is still running when you want the second start to occur?
DataStage is not really intended to be event driven. The preferred approach is to have the event cause something else to happen, such as the creation or deletion of a file or flag value, which a regular batch run of DataStage can detect.


Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
amaruvi
Participant
Posts: 11
Joined: Mon Nov 18, 2002 4:54 am
Location: India

Post by amaruvi »

Make the event ptogram change a flag in a table or file. While runiing the job, ensure that the job checks for the flag value. If the flag is set then go ahead with the job and reset the flag after the job is over.

You can also put to use the Job Sequencer for this purpose.

Amaruvi
Post Reply