How to reset a job from unix shell

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
Angel
Participant
Posts: 18
Joined: Thu May 29, 2003 8:46 am
Location: Spain

How to reset a job from unix shell

Post by Angel »

Hi,
I want to reset a job from unix shell, but I want to know before run the statement 'dsjob -run -mode RESET' the job status.
Can Anybody help me?, I want to do something like if 'DsJobStatus'= Stopped or Abborted then dsjob -run -mode RESET, in a unix shell.
Thank you
Angel
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Hi Angel:

with:
dsjob -jobinfo "project" "job"
you get the infos, which you can grep out with UNIX-means.




Wolfgang Huerter
=====================
Cologne, Germany
Angel
Participant
Posts: 18
Joined: Thu May 29, 2003 8:46 am
Location: Spain

Post by Angel »

ok, but the job status is RUN FAILED , RESET, NOT RUNNING,..?? but not Stopped, Abborted,...
Is always RUN FAILED an Stopped and Abborted status?, I don`t know...
Post Reply