Page 1 of 1

Return Code from dsjob -run OR use dsjob -jobinfo

Posted: Wed Jan 02, 2008 9:57 am
by kommven
Hi,

I have a unix Script which uses dsjob for datastage Job Execution.
I wanted to Know if there is there value in checking the RETURN_VALUE ($?) from the -run command? What does the $? return?
What does -255 return code mean?
OR
Is it better to reinterrogate the -jobinfo for a status other than 0, 1 or 2? I.E.
Job_Status=`dsjob -jobinfo $DSProject $DSJob | head -1 | cut -d"(" -f2 | cut -d")" -f1`

Posted: Wed Jan 02, 2008 10:29 am
by chulett
I stick with -jobstatus rather than interogate the job again after it finishes. Perhaps this recent post would help.

Posted: Wed Jan 02, 2008 5:25 pm
by ray.wurlod
Read about dsjob in the manual. The job status is always available on file unit #2 (stderr).