Self Stopping job Sequencer
Posted: Tue Oct 31, 2006 11:05 am
Use Exec command activity that is triggered by any trigger condition via a sequencer stage.
Use "dsjob -stop " command in the exec command
( Ensure that dsenv is sourced at all times)
add the following lines to .profile of the data stage admin or schedule job user
More detail in server job developer guide( page 696 of 776)
Use "dsjob -stop " command in the exec command
( Ensure that dsenv is sourced at all times)
add the following lines to .profile of the data stage admin or schedule job user
Code: Select all
export DSHOME=<path to dsengine directory>
export DSPROJ=<path to Projects directory>
if [ -x $DSHOME/dsenv ] ; then
echo "Sourcing $DSHOME/dsenv..."
. $DSHOME/dsenv
else
echo "Could not source $DSHOME/dsenv"