Page 1 of 1

Self Stopping job Sequencer

Posted: Tue Oct 31, 2006 11:05 am
by rameshrr3
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

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"
More detail in server job developer guide( page 696 of 776)

Posted: Tue Oct 31, 2006 12:32 pm
by ray.wurlod
Should not be necessary, since every DataStage job processes invokes dsenv script automatically.