Shell scripts and batch jobs (DataStage)

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
chandankambli
Participant
Posts: 14
Joined: Sun Jun 11, 2006 2:16 pm

Shell scripts and batch jobs (DataStage)

Post 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.
Thanks experts.
datastage_learner
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Re: Shell scripts and batch jobs (DataStage)

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Define "batch" in your context.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandankambli
Participant
Posts: 14
Joined: Sun Jun 11, 2006 2:16 pm

Post 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.
Thanks experts.
datastage_learner
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post 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.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pras
Premium Member
Premium Member
Posts: 32
Joined: Mon Nov 28, 2005 8:33 am
Location: Atlanta

Post by pras »

Hi ,

Can we able to run sequence of jobs one after another using scripts???

Thanks,
Prasan
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes.

The method is in my immediately prior post in this thread.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply