<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic compare Directory files with table files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334934#M103545</link>
    <description>&lt;P&gt;I am trying to find out if files that are listed in directory exists in ms sql server table.&lt;BR /&gt;&amp;nbsp;Please help.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 01:36:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-28T01:36:28Z</dc:date>
    <item>
      <title>compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334934#M103545</link>
      <description>&lt;P&gt;I am trying to find out if files that are listed in directory exists in ms sql server table.&lt;BR /&gt;&amp;nbsp;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 01:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334934#M103545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T01:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334935#M103546</link>
      <description>Please help me with this question. I really need to complete this.&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 28 Jan 2016 13:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334935#M103546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334936#M103547</link>
      <description>1. Iterate each file with tFileList and merge all the file name.
&lt;BR /&gt;2. Read all the file names from database.&amp;nbsp;
&lt;BR /&gt;3. Do an inner join on tMap and generate two outputs, one for existing files, another one for non existing file.&amp;nbsp;
&lt;BR /&gt;The job looks like:
&lt;BR /&gt;tFileList--iterate--tFixedFlowInput--main--tUnite--tMap---
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tMssqlInput
&lt;BR /&gt;on tFixedFlowInput: define one column called filename and set its value as:
&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE"))
&lt;BR /&gt;
&lt;BR /&gt;Please refers to this 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513450" target="_blank" rel="nofollow noopener noreferrer"&gt;article &lt;/A&gt;to learn how to do an inner join on tMap.</description>
      <pubDate>Thu, 28 Jan 2016 14:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334936#M103547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334937#M103548</link>
      <description>This solution worked perfect. Now I'm trying to put all the filename into variable from tMap.please help.</description>
      <pubDate>Thu, 28 Jan 2016 19:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334937#M103548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T19:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334938#M103549</link>
      <description>&lt;PRE&gt;Now I'm trying to put all the filename into variable from tMap.please help.&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;Hi&amp;nbsp; 
&lt;BR /&gt;I don't understand what you want to do? Can you please explain it with more details?</description>
      <pubDate>Fri, 29 Jan 2016 04:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334938#M103549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T04:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334939#M103550</link>
      <description>tMap has a column called 'FileName'. 
&lt;BR /&gt;Currently I am printing tMap filenames on the screen using tLogRow. 
&lt;BR /&gt;I want to collect all the filenames and put it into a variable for later use. 
&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 29 Jan 2016 15:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334939#M103550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: compare Directory files with table files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334940#M103551</link>
      <description>Hi 
&lt;BR /&gt;You can add all the filenames to a list or append it to a string on tJavaFlex, eg: 
&lt;BR /&gt;...tMap--out1--tJavaFlex 
&lt;BR /&gt; 
&lt;BR /&gt;begin part of tJavaFlex, define a lst: 
&lt;BR /&gt;java.util.List list=new java.util.ArrayList(); 
&lt;BR /&gt; 
&lt;BR /&gt;main part: add each filename to the list: 
&lt;BR /&gt;list.add(out1.filename); 
&lt;BR /&gt; 
&lt;BR /&gt;end part: put the list to a global variable for used later: 
&lt;BR /&gt;globalMap.put("list",list); 
&lt;BR /&gt; 
&lt;BR /&gt;In the next subjob, you can get the list from the global variable with this expression: 
&lt;BR /&gt;(java.util.List)globalMap.get("list")</description>
      <pubDate>Sat, 30 Jan 2016 10:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-Directory-files-with-table-files/m-p/2334940#M103551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-30T10:54:56Z</dc:date>
    </item>
  </channel>
</rss>

