Calling DS job from unix prompt

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
videsh77
Premium Member
Premium Member
Posts: 97
Joined: Thu Dec 02, 2004 10:43 am
Contact:

Calling DS job from unix prompt

Post by videsh77 »

I want to start a DataStage job from AIX unix prompt. How can I achieve that?
Thanks with regards,
videsh.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Search for 'dsjob'
vinodlakshmanan
Participant
Posts: 82
Joined: Wed Jul 14, 2004 7:21 am
Location: India

Post by vinodlakshmanan »

You have to use the dsjob command. The path for the command is $DSHOME/bin. dsjob -run -mode NORMAL runs the job and dsjob -run -mode RESET resets an aborted job.
See the options which dsjob gives for more options.
Integrity is what you do when no one is watching
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or the chapter in the Server Job Developer's Guide that documents the Command Line Interface. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
alhamilton
Participant
Posts: 12
Joined: Fri Apr 30, 2004 9:11 am

Post by alhamilton »

One thing to keep in mind, dsjob will initiate the job, but won't wait around for it to finish. I use subsequent commands to get the current jobinfo until the job finishes and sleep in between commands.

"dsjob -jobinfo $PROJECT_FOLDER $JOBNAME"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure it will - if you tell it to. :wink:

There's a -WAIT and a -JOBSTATUS option, depending on what you want passed back when it is done.
-craig

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