Filter rows from file with values from database (With tFilterRow and tJDBCRow)

Four Stars

Filter rows from file with values from database (With tFilterRow and tJDBCRow)

Hello!

 

I have a small problem using tFilterRow component in TOS Data Integration (version 6.5.1.).

I have two files that output into a database table. I need to filter the second filed based on values from the first file. My job currently looks like this (non-essential parts ommited)

RemoteDesktopManagerFree_2018-08-08_10-27-21.png

 

My thinking is: Filter the first file base on set values in the file (this works fine).

Then filter the second file based on the output values of the first file (that has already been filtered). The tJDBCRow component has a SQL-query "select distinct id from table" that should be used as the filter for the second file.

 

Any help would be greatly appreciated! Smiley Happy

 

BR. Smam

Six Stars

Re: Filter rows from file with values from database (With tFilterRow and tJDBCRow)

Hi ,

You can use following solution

tDBInput ------->tFlowToIterate ---> tFileInputDelimeted -----> tFilterRow ----->tfileOutputDelemited

In tFilterRow use condition as id Equals ((Integer)globalMap.get("row2.id")) 

and tFileOutputDelimeted in append mode