Wednesday, February 25, 2015

Find out even and odd numbers using tMap in Talend

We have field called id with valuse 1,2,3... 10 and we want to find out all even and odd id by only using tMap in Talend.

Let see how can we do that.

Sample Job-
​Generate the id values using Row-generator component-

​Now the main part of job is using tMap-


We can do the same thing using "Catch output reject" option of tMap-



​Final output-




No comments:

Post a Comment