Running Sequence from command line

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
bhaskarjha
Participant
Posts: 67
Joined: Thu Apr 06, 2006 7:13 am

Running Sequence from command line

Post by bhaskarjha »

Hi,
I am running sequence from command line of Unix. The sequence run properly when I compile the sequence & the included jobs in that sequence. But If I run the sequence without compiling it then I get the error "Job/Sequence is not in runnable state". I would like to know whether is it possible to compile the job/sequence from Unix.

Thanks,
Bhaskar
Bhaskar Jha
opdas
Participant
Posts: 115
Joined: Wed Feb 01, 2006 7:25 am

Post by opdas »

I couldnt find any utility in DS server(Unix) for compilation as it can be done from client(windows) through command line.
Klaus Schaefer
Participant
Posts: 94
Joined: Wed May 08, 2002 8:44 am
Location: Germany
Contact:

Re: Running Sequence from command line

Post by Klaus Schaefer »

Your sequence seems to be aborting for some reason. You should first look into why it is aborting, because this will set your sequence into a "not runnable" state.

If you trigger your sequence from a job activity, you could use the execution action "reset if required then run" to get the sequence back into a runnable state and run it.

Klaus
bhaskarjha
Participant
Posts: 67
Joined: Thu Apr 06, 2006 7:13 am

Post by bhaskarjha »

Thanks Clauss,
Yes the reason behind is the previous status of sequence was aborted I used the command to reset its status. And now its running fine.
Thanks,
Bhaskar Jha
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no "compile from the command line" utility in the product.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I posted a shell script which looks at the current job status. If the job aborted then it does a dsjob -RESET before it tries to start the job.

viewtopic.php?t=93365 is where RunJob.ksh is. It is well documented perhaps over documented.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kduke wrote:It is well documented perhaps over documented.
:lol:

Everyone should have something like Kim's "over documented" wrapper script for launching any kind of DataStage job via dsjob. There's no reason on the planet not to, even if you can't roll your own there's more than one posted here for the taking!
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Over the command line, you cannot compile, just reset the job.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

That script does a reset if needed.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As any good one should. :wink:
-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 »

kduke wrote:It is well documented perhaps over documented.
Done properly there is no such thing as over-documented, imho.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I had a feeling you might think that.
:lol:
Mamu Kim
Post Reply