Page 1 of 1

Invoking datastage job through Autosys scheduler

Posted: Mon Apr 12, 2004 12:33 am
by kumarreddy
Hi,

Can we invoke a datastage job directly in autosys scheduler? Or is there any intermediate script (for eg: shell script) required to invoke the datastage job in autosys scheduler?

How is the datastage job failure information passed on to Autosys?

Thanks.

Posted: Mon Apr 12, 2004 5:34 am
by chulett
There is a Command Line utility called dsjob which is used to invoke DataStage jobs from, amongst other things, Enterprise Schedulers like AutoSys.

Search the forum, it has been discussed rather thoroughly here. :wink: As in a lot. There is a section in the Server Job Developers Guide dedicated to it, look for the Command Line Interface section near the end of the manual, read all about it there.

A DataStage job failure is passed by to AutoSys as an exit code. The simplest way to achieve this is to use the -jobstatus parameter when invoking the job.

Posted: Mon Apr 12, 2004 5:40 am
by kcbland
Here's a copy of a shell script I use:

viewtopic.php?t=85578

Posted: Mon Apr 12, 2004 5:48 am
by chulett
kcbland wrote:Here's a copy of a shell script I use:

viewtopic.php?t=85578
You might want to save that for the Advanced Class, Ken. :lol: