Page 1 of 1

Capture job abort return code and pass it to scheduling tool

Posted: Thu Sep 15, 2011 5:32 pm
by jagadam
Hi,

We are using third party scheduling tool to schedule datastage jobs. We noticed that datastage jobs are not exposing the errors to scheduling tool. In other words when datastage job aborts ,the abort return code is not passing to scheduling tool to abend the JobA(JobA -- is a scheduling tool job which calls a specific script with a command "execute_dsjob "PROJECT" "DSJOBNAME". JobA is ending normally though datastage job aborts on backend.

Is it somewhere in the repository (database) ds job return codes are being captured.

How to capture and pass the abort return code to scheduling tool.

Please let me know your thoughts.

Thanks in Advance

Posted: Thu Sep 15, 2011 5:45 pm
by chulett
Your script should be passing any errors it encounters back out to the calling process, does it? Typically this would involve specifically setting the exit code of the script. If you're not doing this then there's no way for whatever runs the script - schedudling tool or otherwise - to know that there was an issue.