Convert into single cell - All values

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
Kumar252346
Participant
Posts: 22
Joined: Tue Jul 24, 2012 4:56 am
Location: Bangalore

Convert into single cell - All values

Post by Kumar252346 »

Hi,

I have data like below in the input,
ID,Email
1,a@gmail.com
1,b@gmail.com
1,c@gmail.com

And i want the output like below
ID,Email
1,a@gmail.com
b@gmail.com
c@gmail.com

That means i want all the emails in single cell and not in the single line.

We got this requirement to be done and we are trying for that.
Could some one suggest me please?
Thanks,
Kumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What have you tried? Looks like a vertical pivot to me with an extra step to contatenate the new columns into a single one, perhaps with a newline between them. Or if you are on 8.5 or higher, transformer looping.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

For me it looks like interview question,it seems it has been asked same question to many people recently.
Kumar252346
Participant
Posts: 22
Joined: Tue Jul 24, 2012 4:56 am
Location: Bangalore

Post by Kumar252346 »

But it came for me as requirement.This is not interview question.

Apart from this,whether it is requirement or question,there should be solution.

Could some on suggest please.
Thanks,
Kumar
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

Looks like a vertical pivot to me with an extra step to contatenate the new columns into a single one, perhaps with a newline between them
I think Craig has given you the solution.
Thanx and Regards,
ETL User
Post Reply