Running a job when an existing job finishes
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
Running a job when an existing job finishes
I have a job running. I want another job to start when it finishes. Am I doomed to hitting refresh in DataStage Director?
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant
Phil,
you can always use a job sequence to do this, that is your easiest solution.
you can always use a job sequence to do this, that is your easiest solution.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 385
- Joined: Wed Jun 16, 2004 12:43 pm
- Location: Virginia, USA
- Contact:
You could write some job control to call DSAttachJob and DSGetJobInfo to return the status of the currently running job. When the status is DSJS.RUNOK, you can start your next job.
Chuck Smith
www.anotheritco.com
www.anotheritco.com
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 82
- Joined: Thu Dec 02, 2004 10:27 pm
- Location: INDIA
Looks like it is an adhoc requirement before close of business before going home.
You can try this
You can try this
Code: Select all
l
$DSHOME/DSEngine/bin/dsjob -jobinfo $PROJECT $JOBNAME | grep "Job Status"
Use a sleep and repeat every 10 seconds.
If the result is Run With Warnngs " or whatever you decide accordingly and kick off the next job.
dsxuserrio
Kannan.N
Bangalore,INDIA
Kannan.N
Bangalore,INDIA