Hi All,
I'm unable to search the forum. So I'm posting it.
How can all the jobs in a project be ran from command line. Can dsjob or dsadmin commands do it?
Thanks,
Sumesh
Running all jobs in a project from command line
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 153
- Joined: Thu May 11, 2006 1:52 am
- Location: Bangalore
-
- Participant
- Posts: 153
- Joined: Thu May 11, 2006 1:52 am
- Location: Bangalore
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
In what order do you want to run them?
There is no command like dsjob -run * if that's what you're looking for. But you could do something like
(all on one line if desired). Of course you will have no control over the order of execution (probably alphabetical order!).
There is no command like dsjob -run * if that's what you're looking for. But you could do something like
Code: Select all
for j in `dsjob -ljobs project`
do
dsjob -run -jobstatus options project ${j}
done
Last edited by ray.wurlod on Fri Mar 30, 2007 11:13 am, edited 1 time in total.
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.
Ray's solution will work for you if the answer to his question is, "It does'nt matter", which is rarely the case.ray.wurlod wrote:In what order do you want to run them?
Build a file which has all the job names in the order in which they need to be run. Cat the file, read it one by one and pass it to the dsjob -run command.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.