Iterate through file list for every item of another file list

One Star

Iterate through file list for every item of another file list

Hi,
I have the following problem: I have two lists of files. For every item of the first list I try to iterate throug all items of the second list and look for matching attribute value.
Example:
File list 1:
A.xml
B.xml
C.xml
D.xml
File list 2:
1.xml
2.xml
3.xml
-> compare A.xml with 1.xml, 2.xml, 3.xml
-> compare B.xml with 1.xml, 2.xml, 3.xml
-> compare C.xml with 1.xml, 2.xml, 3.xml
-> compare D.xml with 1.xml, 2.xml, 3.xml
The problem in the job you can see in the attached screenshot is the arrangement of the two filelists. How to arrange it, so that the second list is traversed for every item of the first list?
Four Stars

Re: Iterate through file list for every item of another file list

ohofrichter - how about this?
As you can see in the drop down list, you can access the global variables for both tFileList1 and tFileList2...
One Star

Re: Iterate through file list for every item of another file list

Thank you, willm. It works!
Four Stars

Re: Iterate through file list for every item of another file list

ohofrichter - glad to hear Smiley Happy
Please mark this post as resolved.
Thx...

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog