DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
jpraveen
Participant



Joined: 06 Jun 2009
Posts: 71
Location: HYD
Points: 747

Post Posted: Wed Oct 18, 2017 12:25 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
I have a requirement to generate the same set of records based on codes & input data.

my input data looks like

John|101|M|23
Kathy|102|F|40
Jean|103|M|23
Pauk|104|M|55

I have standard codes US,GB,MX,CA

and the output should be

John|101|M|23|US
John|101|M|23|GB
John|101|M|23|MX
John|101|M|23|CA
Kathy|102|F|40|US
Kathy|102|F|40|GM
Kathy|102|F|40|MX
Kathy|102|F|40|CA
Jean|103|M|23|US
Jean|103|M|23|GB
Jean|103|M|23|MX
Jean|103|M|23|CA
Paul|104|M|55|US
Paul|104|M|55|GB
Paul|104|M|55|MX
Paul|104|M|55|CA

_________________
Jaypee
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42215
Location: Denver, CO
Points: 216749

Post Posted: Wed Oct 18, 2017 7:13 am Reply with quote    Back to top    

What have you tried? What issues are you facing? Looks like a pretty straight-forward "transformer looping" scenario to me...

_________________
-craig

Watch out where the huskies go and don't you eat that yellow snow
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54034
Location: Sydney, Australia
Points: 293130

Post Posted: Wed Oct 18, 2017 11:34 pm Reply with quote    Back to top    

Agreed, very easily accomplished using a Transformer looping through a list of state abbreviations with which you probably initialize a stage variable. I assume the GM was a typo, that the list i ...

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
currently hiring: Canberra, Sydney and Melbourne
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours