Master Sequence Job Design

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
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Master Sequence Job Design

Post by nvalia »

Hi All,

We do not have a Scheduler and hence we are planning to design a Master Sequence job by which we will control the end-end ETL cycle, right from polling for a Trigger File to start the Cycle and then load Staging Tables followed by Ref tables followed by Dim tables followed by Fact Tables and finally Post Processes. This one Master Seq job will be scheduled using Windows Task Scheduler via a Script

My question is, do we build individual Sequence for each of these class of objects, like StgSeq, RefSeq, DimSeq, FactSeq to group them togather and then call these Sequence jobs in the Master Seq (Concept of Master and Child Seq) so we segregate them and it becomes easy to add more Dims/Facts in next phase of the project, rather than directly adding the jobs in the Master Seq

(Individual Dim/Fact build themselves are Seq jobs)

What is a better approach from Restart-ability, future change ability, best practices perspective and a less complicated design?

Thanks,
NV
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

You can build as many levels into your job sequences as you'd like. It's not uncommon to have child job sequences , grandchild job sequences, etc. If designed properly, the restart is just as simple as cramming everything into a single master sequence.

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

Post by ray.wurlod »

You do have a scheduler. It's called the Information Server scheduling service.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

Ray I believe you mean the Scheduler from the Director Client right.

Yes we have that but it is a pretty basic one, what I meant was something like an Enterprise Scheduler where I can build dependencies using it between jobs, scripts and other components involved in the End to End ETL Cycle

Using this Information Server Scheduling Service we still need to build all inter dependencies in a Master Sequence Job
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

I prefer having multiple sequence levels for better maintenance after wards depending on number of jobs to be sequenced.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Re: Master Sequence Job Design

Post by qt_ky »

nvalia wrote:My question is, do we build individual Sequence for each of these class of objects, like StgSeq, RefSeq, DimSeq, FactSeq to group them togather and then call these Sequence jobs in the Master Seq (Concept of Master and Child Seq) so we segregate them and it becomes easy to add more Dims/Facts in next phase of the project, rather than directly adding the jobs in the Master Seq
Yes, it's a reasonable approach and would be easy to maintain and be restartable. I would put all logic and dependencies into the sequence jobs and keep it in DataStage where I think it belongs. Just place the top level sequence job on a schedule. Any scheduler will do.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply