help in dsjob command
Moderators: chulett, rschirm, roy
help in dsjob command
I am creating a unix for triggering multiple instances of a job.
I am using -jobstatus in dsjob command.
It causes the second instance to wait until the first instance finish.
Once the first instance finishes, the second instance starts.
But i want to run both the instances and want the job status of both jobs once they finished,.
Becuase if any of the instances abort, i need to trigger the mail.
Please help me to achieve this.
Thanks
I am using -jobstatus in dsjob command.
It causes the second instance to wait until the first instance finish.
Once the first instance finishes, the second instance starts.
But i want to run both the instances and want the job status of both jobs once they finished,.
Becuase if any of the instances abort, i need to trigger the mail.
Please help me to achieve this.
Thanks
pandeeswaran
-
- Premium Member
- Posts: 258
- Joined: Tue Jul 04, 2006 10:35 pm
- Location: Toronto
Re: help in dsjob command
why dont you build a sequence for it.
it will be easier
it will be easier
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Are you really going to "create a unix" just for that? Or just create a UNIX shell script?
You need to run dsjob with neither -wait nor -jobstatus (which you could have determined by searching DSXchange); your script must then periodically check the status of each job until the status of both is no longer "running", then react appropriately according to what those status values are.
![Laughing :lol:](./images/smilies/icon_lol.gif)
You need to run dsjob with neither -wait nor -jobstatus (which you could have determined by searching DSXchange); your script must then periodically check the status of each job until the status of both is no longer "running", then react appropriately according to what those status values are.
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.