Job Sequence Versus Batch Scripts

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
freakyscorpion
Participant
Posts: 1
Joined: Thu Jul 20, 2006 8:07 pm

Job Sequence Versus Batch Scripts

Post by freakyscorpion »

Hi!

I am a DataStage developer (Version 7.5) and work on Server jobs. It is a practice at my work place to use Batch Scripts in order to schedule a set of jobs instead of using a Job Sequence. I have not worked on Job Sequences and have the following clarifications.

:arrow: Are Job Sequences specific to DataStage Director when it comes to scheduling?
:arrow: Which is better (in terms of performance, troubleshooting, etc)? - Batch Scripts or Job Sequences?
:arrow: Scheduling is done using an external tool and not through the DataStage Director. I would like to know if this why Job Sequences are not used.

Thanks in Advance
Scorp
freakin' scorpion
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A Batch, a job sequence or a user-written job control routine are all the same thing - the code can be viewed through the job properties. Therefore, all else being equal, there are no differences.

Job sequences can indeed be invoked by third party schedulers, via the same interface (dsjob) that you would use for a batch. The "why" is therefore to be answered by your organization. It is not a DataStage restriction.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How long has your organization used DataStage? If I had to guess, I would think it has been in use since before Sequence jobs were available and so were (as everyone was) writing their own 'Batch' jobs. And just got used to working that way, never making the 'switch' to Sequence jobs.

As Ray notes, there really isn't any difference under the covers. It's just now you've got the standard GUI to lay them out and something to write all that goofy code for you. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can design and build sequences at a lightening rate. So it is not a lot of work to move to sequences. The restartability is better in custom batch jobs if done correctly. The restartability in Control M and some other products is even better but the level of effort to put jobs into a separate product may not be worth it. You may need to write a wrapper shell script if you go this route. Handling parameters makes all of these more difficult.
Mamu Kim
Post Reply