Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
for first column: row6.picture1!=null? row6.picture1.split(";").length >0?row6.picture1.split(";"):null
:null
for second column: row6.picture1!=null? row6.picture1.split(";").length >=1?row6.picture1.split(";"):null
:null
for third column: row6.picture1!=null? row6.picture1.split(";").length >=2?row6.picture1.split(";"):null
:null
Hi, there,
I want to transpose my file. Format is below:
Input File: It is a tabulation delimited file
IDOC Number 00000012321
Name John Lewis
Net Weight 0.000
Weight Unit KGM
Output File:
IDOC Number;Name;Net Weight;Weight Unit
00000012321;John Lewis;0.000;KGM;
How to do it in Talend?
fhello @stuti_206
if number of columns are fix and in correct order in input file ,
1) create an id for each set of data. below records belong to single set , so add 1 as id for all
2) set schema of 3 columns id,question,answer and change delimter to ; ( this is just to sync with example mention in below link )
3) use tPivotToColumnDelimited
https://help.talend.com/reader/NNO~fmVQU4rlkF9Depfdxw/GW_EzpRJPsxxxIbzHtGxjQ
4) filter id column if not required