Invoking datastage job through Autosys scheduler

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
kumarreddy
Participant
Posts: 4
Joined: Thu Apr 08, 2004 7:28 am

Invoking datastage job through Autosys scheduler

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

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

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Here's a copy of a shell script I use:

viewtopic.php?t=85578
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

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

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