Dont even think about killing the process using the dreaded 'kill' command. There can be open connections to a database, runaway processes that would leach over the resouces, not to mention, you getting a call from system admin.
Try my method, set the warning level to 1, and if your timer times out, just log a warning message, this will force the job to abort.
Time Limits on jobs
Moderators: chulett, rschirm, roy
Even invoking the master sequence with dsjob warning limit of 1 and then logging a warning after timeout didnt work.
The master sequence job should abort but it didnt??!![/code]
Code: Select all
$dshome/bin/dsjob -run -jobstatus -warn 1 $DSproject $DS_job_name
I am giving up hope. Doesnt seem like there is a clean and elegant way to abort a job from the comand line. I will have to go with my workaround plan of masking my master sequence in a job activity and use my wait for done file approach. That works, but I will have to create these timer super sequencers to run master sequencers. any other ideas??
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
If you can specify under exactly what conditions you want an abort to occur, then you could create another job (Job Control code) that polled for those conditions and issued appropriate DSStopJob() calls.
Have you investigated a Terminator activity in a job sequence? That does much the same thing, but has to be triggered.
You can force the Exeception Handler to trigger only by guaranteeing that the sub-jobs abort. But you could set up user variables or routines that detect the exit status of all sub-jobs and trigger a control stream that ends with a Terminator.
Have you investigated a Terminator activity in a job sequence? That does much the same thing, but has to be triggered.
You can force the Exeception Handler to trigger only by guaranteeing that the sub-jobs abort. But you could set up user variables or routines that detect the exit status of all sub-jobs and trigger a control stream that ends with a Terminator.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.