Return Code from dsjob -run OR use dsjob -jobinfo
Posted: Wed Jan 02, 2008 9:57 am
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`
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`