Self Stopping job Sequencer

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Self Stopping job Sequencer

Post 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)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Should not be necessary, since every DataStage job processes invokes dsenv script automatically.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply