job status 99

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
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

job status 99

Post by kausmone »

Hi,

Before executing a multiple instance job through a shell script, we are checking its status using the below command:

Code: Select all

$DSHOME/bin/dsjob -server :31539 -jobinfo svtt_dev SQ_SVTT_Main.11
When executing this from command-line, it gives a return value 0 when the job is already running. However, when giving the same command through the shell script, 99 is returned. Any idea why?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Different error handling in dsjob and in the GUI client, probably. It's just how it is.

Best practice is to check the job status prior to submitting a run request.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

Post by kausmone »

Ray, thanks for the reply and sorry for causing some confusion. What I was intending to say was, when I gave the command on the UNIX command prompt it returned 0 whereas running through shell script returned 99...
kausmone
Participant
Posts: 39
Joined: Fri Sep 21, 2007 1:47 am
Location: Prague

Post by kausmone »

found the reason.. something wrong in my script.. sorry for the bother...

thanks,
kaus
Post Reply