Requirement to filter first run to generate following days

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Requirement to filter first run to generate following days

Post by laknar »

i have a attribute called code.

if the code is 1 then filter for the first run.
from the next run if the code is 1 then we have to flow to the target.
Regards
LakNar
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Can you be more clear with your requirements?

What do you mean by first run? first run for the day or first run (Initial load) on production environment? Similarly, you may want to explain about next run too!!
Kandy
_________________
Try and Try again…You will succeed atlast!!
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Post by laknar »

Hi,

First run is the Initial load the records should not flow into the target.
for the next load records has to flow into target.
Regards
LakNar
vasa_dxx
Participant
Posts: 39
Joined: Sun Sep 28, 2008 2:59 am
Contact:

Post by vasa_dxx »

Reject the records on code=1, write to a file/table. Use this file/table for lookup for the second run.
Further Runs depend on your requirement.
So what is the case for for third,fourth,.... runs.
Two wrongs don't make a right. But three lefts do.
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Post by laknar »

next load we need to flow into target.
if we reject in the first load and the next day also will get reject.
Regards
LakNar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Stop.

Step back.

Analyze thoroughly what you want to occur, with examples, on day one and on subsequent days. Document the rule under which the cycle resets to day one.

From this analysis produce a detailed specification.

Get someone else to review your work (peer review).

This process ought to make it much more clear how to go about the ETL design.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply