date generation

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
sundar
Participant
Posts: 30
Joined: Thu Sep 01, 2005 10:34 am

date generation

Post by sundar »

Hi all
I had two date fields valid_from and valid_to having values 29-5-2005 and 5-6-2005.
i want to generate records for dates between these two fields like
29-5-2005
30-5-2005
31-5-2005
01-06-2005
02-06-2005
03-06-2005
04-06-2005
05-06-2005

if it is saturday or sunday, it should not generate record for the date.
I tried using transformer and functions.

Please help me in this regard.

with regards
sundar
bchau
Charter Member
Charter Member
Posts: 46
Joined: Tue Jan 18, 2005 7:39 am
Location: Japan
Contact:

Post by bchau »

please refer to this post:

viewtopic.php?t=101880
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's probably easier to generate all dates (Column Generator stage) then remove those whose day of week is Saturday or Sunday (Filter stage).
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