Page 1 of 1
Calling DS job from unix prompt
Posted: Wed May 11, 2005 4:14 am
by videsh77
I want to start a DataStage job from AIX unix prompt. How can I achieve that?
Posted: Wed May 11, 2005 4:24 am
by Sainath.Srinivasan
Search for 'dsjob'
Posted: Wed May 11, 2005 4:26 am
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.
Posted: Wed May 11, 2005 6:45 am
by chulett
Or the chapter in the
Server Job Developer's Guide that documents the
Command Line Interface.
![Wink :wink:](./images/smilies/icon_wink.gif)
Posted: Wed May 11, 2005 9:15 am
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"
Posted: Wed May 11, 2005 9:21 am
by chulett
Sure it will - if you tell it to.
There's a
-WAIT and a
-JOBSTATUS option, depending on what you want passed back when it is done.