Page 1 of 1

write data with different number of columns to a single file

Posted: Sat Dec 29, 2007 5:19 am
by jenny_wang
3 output link in a transformer
link1 has 5 columns , like:
1,2,3,5,4
22,33,34,16,33

link2 has 8 columns :

1,2,4,6,5,4,3,5
100,34,23,12,55,65,77,44


link3 has 7 columns:
1,1,34,33,55,4,3
2,4,42,32,44,55,33

i wanna write them into a single file:

1,2,3,5,4
22,33,34,16,33
1,2,4,6,5,4,3,5
100,34,23,12,55,65,77,44
1,1,34,33,55,4,3
2,4,42,32,44,55,33

what kind of stage i can use to get this?
please help!

Posted: Sat Dec 29, 2007 8:40 am
by Alokby
Utilize UNIX cat command, cat file1 file2 file3 > outputfile, in the after routine in the job properties.

Posted: Sat Dec 29, 2007 1:17 pm
by ray.wurlod
You could use a Column Export stage to create a single VarChar column on each link (containing a comma-delimited string), and run the three links into a Funnel stage to combine them.