generate multiple rows

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
kool_cons
Participant
Posts: 68
Joined: Thu Jul 07, 2005 3:41 pm

generate multiple rows

Post by kool_cons »

I am stuck on a problem here.. I have a source table with year-month column along with other fields. I have to generate date data for given month of source table. Ex: 2004-03 in source table, i have to populate 2004-03-01,2004-03-02,....2004-03-30 etc. along with other columns. Can we implement this in datastage?

Source
1 paul 2008-03

Target
1 paul 2008-03-01
1 paul 2008-03-02
1 paul 2008-03-03
........
1 paul 2008-03-31
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

(channelling Ken) Time Dimension! :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Time dimension table with multiple-row return enabled from the lookup, or via an inner join on the year-and-month.

:idea:
Tip: "Numeric date" fields yyyymmdd and yyyymm are very useful in time dimensions.
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