Difference btw Sequencer & Batch jobs

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Difference btw Sequencer & Batch jobs

Post by ganesh123 »

Howdie,

I wanted to know the difference between the Jobs running in sequence and jobs added and running in Batch .

Like what is the basic difference and when its used.

I know if a Job2 is dependent on Job1 we use sequencer, but can we add Job1 and Job2 in the batch and run it. Will it give the same result ?

Is the order of adding jobs in BATCH is important or can we add randomly ?

Thankas in advance :)
If women didn't exist, all the money in the world would have no meaning.
-- Aristotle Onassis
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

At a very high level, a Sequence job is the same as a Batch job. It's just that you have a GUI to generate the Sequence job and you need to hand-code the 'Batch' job.

Other than that, they're both 'job control' code. Of course, when you write it yourself, you can extend the functionality considerably and do more than the GUI currently allows.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ganesh123
Participant
Posts: 70
Joined: Tue Feb 20, 2007 3:22 pm
Location: NJ,USA
Contact:

Post by ganesh123 »

So help me Craig, do we use "DS Macro" and "DS Constants" in Job control and not within the transformer or elsewhere within the Job ? I am asking this because I have never used them so far.

For eg. "Wait for File" or "Send email" or "DS Job status" etc... we can use in Job control only ?
If women didn't exist, all the money in the world would have no meaning.
-- Aristotle Onassis
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

You should explore your right mouse click menu in Transformer to see what macros and constants are available. You might find a use for things like job start time or job name or invocation id. Functions like wait for file and send email should be run once before or after the job so they are best in a batch or sequence job. They would be terrible in a transformer as they would be run for every row and slow the job down, unless you are using a DataStage transformer as a way of looping through a control table and running commands.
Post Reply