Split file to more files in talend

Betlista picture Betlista · Apr 27, 2012 · Viewed 7k times · Source

I'm looking for a way how to split job execution in talend studio according to actual file row - I'd like to process file rows starting with "DEBUG" in one job branch and another rows in another job branch. It that possible?

Answer

user1483583 picture user1483583 · Jun 26, 2012

To do this, use a tMap component. Your job will look like this

   t*Input--row-->tMap--out1--->tFileOutput*

                      --out2--->tFileOutput*

In the tMap component, you have input on the left and output on the right. In your output table, select "Activate expression filter" and use the text box to define your filter-- only rows that match that filter will be ouput from that connection. You can have as many output tables and filters as you need.