Call a DS job from shell script

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sachinamr
Participant
Posts: 2
Joined: Thu Jul 07, 2005 4:32 am

Call a DS job from shell script

Post by sachinamr »

How to call a datastage server or parallel job from shell script? And how to pass parameters to it?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello Sachinamr,

this subject has been talked about in many threads. You can use a UNIX or Windows CMD program called dsjob to do this. If you call it without parameters it will show you the help options, but it is best to read about it in the documentation.
rkdatastage
Participant
Posts: 107
Joined: Wed Sep 29, 2004 10:15 am

Post by rkdatastage »

Hi
you can call ds job from shell script or batch file in windows.
DSjob -run project_name job_name
hope this will work for you

RK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hello!

In case you are wondering, there is a command line executable called dsjob that you will use from a shell script to run a job. And yes, parameters too. :wink:

Search and yea shall find a bazillion posts on the subject. It is also, as Arnd noted, in one of the pdf manuals of all places - the Server Job Developer's Guide, specifically the chapter on the Command Line Interface.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

One thing that's not totally clear (unless you read the entire manual entry) is that you place one -param option for each parameter (not one -param option for the entire command). You can have as many -param options as you require.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply