Hi
I am having a source input file as
Input
Name Region
Ravi All
Ram Europe
I am having a table which is having structure and data as below:
C1 C2 C3
A Asia 10
B Asia 20
C Europe 30
Now I want to map the input file to this table and get all the codes for the corresponding region and expecting output to be as
Output
Name Region Code
Ravi All 10
Ravi All 20
Ravi All 30
Ram Europe 30
As Ravi is assigned All in the osurce file, he should get all the codes.I tried using lookup, but lookup only gets only one value
Please share any ideas on this
Thanks
Pradeep
Flattening the file with codes
Moderators: chulett, rschirm, roy
Flattening the file with codes
Pradeep Kumar
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You will need special handling for "All" - probably in a separate stream in the job that you can bring back together with the main stream in a Link Collector stage or by writing to an intermediate hashed file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.