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
videsh77
Premium Member
Posts: 97 Joined: Thu Dec 02, 2004 10:43 am
Contact:
Post
by videsh77 » Wed May 11, 2005 4:14 am
I want to start a DataStage job from AIX unix prompt. How can I achieve that?
Thanks with regards,
videsh.
vinodlakshmanan
Participant
Posts: 82 Joined: Wed Jul 14, 2004 7:21 am
Location: India
Post
by vinodlakshmanan » Wed May 11, 2005 4:26 am
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
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Wed May 11, 2005 6:45 am
Or the chapter in the
Server Job Developer's Guide that documents the
Command Line Interface .
-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 » Wed May 11, 2005 9:15 am
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
Posts: 43085 Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO
Post
by chulett » Wed May 11, 2005 9:21 am
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.
-craig
"You can never have too many knives" -- Logan Nine Fingers