Running Sequence from command line
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 67
- Joined: Thu Apr 06, 2006 7:13 am
Running Sequence from command line
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
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
-
- Participant
- Posts: 94
- Joined: Wed May 08, 2002 8:44 am
- Location: Germany
- Contact:
Re: Running Sequence from command line
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
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
-
- Participant
- Posts: 67
- Joined: Thu Apr 06, 2006 7:13 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
viewtopic.php?t=93365 is where RunJob.ksh is. It is well documented perhaps over documented.
Mamu Kim
kduke wrote:It is well documented perhaps over documented.
![Laughing :lol:](./images/smilies/icon_lol.gif)
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
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: