Capture job abort return code and pass it to scheduling tool

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
jagadam
Premium Member
Premium Member
Posts: 107
Joined: Wed Jul 01, 2009 4:55 pm
Location: Phili

Capture job abort return code and pass it to scheduling tool

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply