Page 1 of 1
Shell scripts and batch jobs (DataStage)
Posted: Mon Jan 22, 2007 3:56 pm
by chandankambli
Hello All:
Usually during the development and testing we use director and sequences to execute jobs?
How do we use shell scripts for batch execution?
Pls. explain.
Re: Shell scripts and batch jobs (DataStage)
Posted: Mon Jan 22, 2007 3:59 pm
by DSguru2B
chandankambli wrote:
Pls. explain.
Pls. search.
There are a lot of topics on this discussion. You will also find sample scripts to execute jobs via scripts.
Posted: Mon Jan 22, 2007 8:17 pm
by ray.wurlod
Define "batch" in your context.
Posted: Tue Jan 23, 2007 12:31 am
by chandankambli
ray.wurlod wrote:Define "batch" in your context.
Batch of parallel jobs. Say if I have five Jobs to execute one after another. Once previous job is successful.
How we do that in shell scripting? is it a DSJob <params> or will it be DSRunJob <param> command?
Pls. explain.
Posted: Tue Jan 23, 2007 12:38 am
by narasimha
chandankambli wrote:
How we do that in shell scripting? is it a DSJob <params> or will it be DSRunJob <param> command?
dsjob -run
There is more to it...as already told by eveybody above, a search will give you many examples.
Posted: Tue Jan 23, 2007 2:20 am
by ray.wurlod
Have you constructed a formal Batch (in Director), using a Job Sequence or using a job control routine? Or do you just want to run a series of jobs from a script one after another?
In the latter case, simply string together appropriate dsjob commands in the shell script.
Posted: Tue Jan 23, 2007 3:01 am
by pras
Hi ,
Can we able to run sequence of jobs one after another using scripts???
Thanks,
Prasan
Posted: Tue Jan 23, 2007 4:34 am
by ray.wurlod
Yes.
The method is in my immediately prior post in this thread.
Posted: Tue Jan 23, 2007 8:32 am
by DSguru2B
pras wrote:Hi ,
Can we able to run sequence of jobs one after another using scripts???
Thanks,
Prasan
Sequence jobs are also datastage jobs and can be run via Job Control or a script. See Ray's reply.