Page 1 of 1

Error Code and Error Handling

Posted: Tue May 08, 2007 9:17 pm
by cosec
Is it possible to provide application defined return code in DS? If so how is it done
?

Thanks

Posted: Wed May 09, 2007 1:00 am
by ray.wurlod
No.

However, if you call DataStage jobs using dsjob from a script, you can re-map the standard exit codes within that script.

Posted: Tue May 22, 2007 1:49 am
by cosec
ray.wurlod wrote:No.

However, if you call DataStage jobs using dsjob from a script, you can re-map the standard exit codes within that script. ...

How Can this be accomplished ?

Posted: Tue May 22, 2007 3:10 pm
by ray.wurlod

Code: Select all

dsjob -run -jobstatus ...
exitstatus=$?
if [ $exitstatus -eq 0 ] then
   exit 20
fi