concatenate two column values to generate single column

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
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

concatenate two column values to generate single column

Post by nirdesh2 »

How to concatenate two column values to generate single column without using Transformer.
I am doing a lookup and returning 2 column and now i want to concatenate these 2 column and store the output in one column.
Please help me.
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Re: concatenate two column values to generate single column

Post by tehavele »

I think Transformer is the best way for concatination as per my knowledge , unless there is something other trick.
Tejas
kittu.raja
Premium Member
Premium Member
Posts: 175
Joined: Tue Oct 14, 2008 1:48 pm

Re: concatenate two column values to generate single column

Post by kittu.raja »

nirdesh2 wrote:How to concatenate two column values to generate single column without using Transformer.
I am doing a lookup and returning 2 column and now i want to concatenate these 2 column and store the output in one column.
Please help me.

Use the funnel stage. where you will the 2 columns data into single column
Rajesh Kumar
tehavele
Premium Member
Premium Member
Posts: 79
Joined: Wed Nov 12, 2008 5:41 am
Location: Melbourne

Re: concatenate two column values to generate single column

Post by tehavele »

I dont think funnel will be useful here.Funnel is like a union expression in sql.
Tejas
Romy
Participant
Posts: 26
Joined: Thu Nov 13, 2008 3:37 am
Location: Chennai

Post by Romy »

you can try using column export stage. The Column Export stage exports data from a number of columns of different data types into a single column of data type string or binary.
bi_fujitsu
Premium Member
Premium Member
Posts: 46
Joined: Tue Mar 20, 2007 3:30 am
Location: India

Post by bi_fujitsu »

Use the concatenation operator :
ColA:ColB in the trasformation of your target column
nirdesh2
Participant
Posts: 56
Joined: Thu Nov 20, 2008 12:18 pm
Location: Noida

Post by nirdesh2 »

Romy wrote:you can try using column export stage. The Column Export stage exports data from a number of columns of different data types into a single column of data type string or binary.
It helped me...
Thanks a lot...
Nirdesh Kumar
Post Reply