Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Concatenate Input Columns in TMap

Hello,

 

I am trying to concatenate two excel input columns into one on Talend using Tmap, but the output is splitting into multiple columns because the data in columns is separated by a comma. Please see the below example:

Expected Output
Col1 Col2 OutputCol
GRETCHEN, CS ELITE FIRE SERVICE, INC.  GRETCHEN, CS ELITE FIRE SERVICE, INC.

 

Generated Output  
GRETCHEN, CS ELITE FIRE SERVICE, INC.  GRETCHEN CS ELITE FIRE SERVICE INC

 

I am using row1.Col1 + row2.Col2 in Tmap expression.

 

Thanks

Sumithra

Labels (2)
1 Solution

Accepted Solutions
fdenis
Master
Master

in your tfileOutputDelimited in Advenced setting add CSV option

View solution in original post

10 Replies
TRF
Champion II
Champion II

What kind of output do you expect?

Can you share you tMap + schemas?

Anonymous
Not applicable
Author

Hi,

 

Thanks for Replying. My talend job looks like this.0683p000009LyjY.jpg

TRF
Champion II
Champion II

For tFileOutputDelimited, change the field separator from ',' to something else like ";"

Anonymous
Not applicable
Author

Hi TRF,

 

But I would need the output to be generated as a csv file which will be separated by comma. Is there any other way we can approach?

 

Sumithra

TRF
Champion II
Champion II

If you want field separator as comma and you also have commas into the field value, then you have to enclose fields between "" or any character you want.

fdenis
Master
Master

in your tfileOutputDelimited in Advenced setting add CSV option
manodwhb
Champion II
Champion II

@skrc0213,please find the below are you looking for?

 

 

 

0683p000009Lyus.pngJob0683p000009Lyux.pngOutput0683p000009Lyv2.pngtmap0683p000009LyeW.pngtFileOutputDelimited settings

Anonymous
Not applicable
Author

Thanks aton fdenis.. It worked.... 0683p000009MACn.png

Anonymous
Not applicable
Author

Hello Fednis,

 

So what should be the settings after checking csv option. It has escape characters and text enclosure. I just need a csv files with comma separated values. 

 

Thanks

Sumithra