Resetiing a job via shell script
Posted: Wed Jul 01, 2009 4:26 am
Hi All,
I have a scheduled data stage job run via below script on daily basis.
#! /usr/bin/sh
dshome=`cat /.dshome`;
export dshome
PATH=$PATH:$dshome/bin;
export PATH
. $dshome/dsenv
dsjob -run -param source_file=$1 Test_Project Seq_job.$2
Some times the job gets aborted due to avoidable issues like file didnt land because of market holiday yesterday.
So is it possible to add any command in the same script to reset the sequence job and all the jobs called from the sequence job if it has aborte last time?
Thanks in advance.
Sjordery.
I have a scheduled data stage job run via below script on daily basis.
#! /usr/bin/sh
dshome=`cat /.dshome`;
export dshome
PATH=$PATH:$dshome/bin;
export PATH
. $dshome/dsenv
dsjob -run -param source_file=$1 Test_Project Seq_job.$2
Some times the job gets aborted due to avoidable issues like file didnt land because of market holiday yesterday.
So is it possible to add any command in the same script to reset the sequence job and all the jobs called from the sequence job if it has aborte last time?
Thanks in advance.
Sjordery.