Aborting a Job from within Another Server Job.

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
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Aborting a Job from within Another Server Job.

Post by loveojha2 »

Hi All,

I am testing jobs of a certain category, for that I have created one server job which runs each job one by one (i.e. one after the other) through DSRunJob. My requirement is to abort a job running for more than certain time (say 20 minutes) from within the master server job. Moreover I can't modify the server jobs to be run(other than master server job). Is there anyway that I can achieve this ?

Thanks in advance.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It is inefficient to try to hav the job itself check to see how long it has been running, but it should be an easy matter to have the starting program or any other program use a timer and, after the specified period of time is over, call dsjob to cancel the job.
Post Reply