Page 1 of 1

job status 99

Posted: Wed Mar 05, 2008 4:00 am
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?

Posted: Wed Mar 05, 2008 4:02 am
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.

Posted: Wed Mar 05, 2008 4:23 am
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...

Posted: Wed Mar 05, 2008 4:43 am
by kausmone
found the reason.. something wrong in my script.. sorry for the bother...

thanks,
kaus