<?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 Re: How to get latest files from folder based on last run in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2314001#M84806</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we can do with combination of tFileList and tFileExist components.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Let us Assume A1 is the Source.&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Create A2 and A3 two other folders.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Iterate A1 folders with tFileList and use tFileExists -A2 directory path and global variable "tFileList_1_CURRENT_FILE to check the files in A2.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;After TfileExistsuse condition tFileExist_2_EXISTS then copy the file using tFileCopy to Folder A3.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;At end of run make sync between A1 and A2.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;After processing new files in A3 archive/delete them&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Like this every run new files will be stored in A3.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 13:42:35 GMT</pubDate>
    <dc:creator>lvsiva</dc:creator>
    <dc:date>2019-08-02T13:42:35Z</dc:date>
    <item>
      <title>How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313993#M84798</link>
      <description>&lt;P&gt;How to get incremental files from same folder …in talend&lt;/P&gt;
&lt;P&gt;I have to get files based on last job start date after which are files coming those files i need process..how i can achive&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="skimlinks-unlinked"&gt;this.pls&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;help me..Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 05:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313993#M84798</guid>
      <dc:creator>saivsr</dc:creator>
      <dc:date>2017-08-24T05:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313994#M84799</link>
      <description>Store the last filename processed in a file (and reuse this information for next run) or rename the files after they have been processed.</description>
      <pubDate>Thu, 24 Aug 2017 09:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313994#M84799</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-24T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313995#M84800</link>
      <description>&lt;P&gt;Hi TRF, Thanks for your response....My requirement is incremental files are coming to client server from that we need process the those files, which are newly coming from last run..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: Yesterday 10 files came ---&amp;gt; we processed--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;today 5 files came ----&amp;gt;total 15(yesterday 10+today 5)--from this i want to get latest files and need to process..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How we can this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share the complete Talend Design ?&lt;/P&gt;&lt;P&gt;Thank you so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 10:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313995#M84800</guid>
      <dc:creator>saivsr</dc:creator>
      <dc:date>2017-08-24T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313996#M84801</link>
      <description>Can you also send your file name format?? I am also facing same issue so,&lt;BR /&gt;I came up with a solution where i am getting all in tfilelist and iterate those file from tJava (compare those files and get next file , b4 that i will store last run job file name)&lt;BR /&gt;Can anyone give me better solution.. Thanks in Advance!!</description>
      <pubDate>Thu, 24 Aug 2017 19:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313996#M84801</guid>
      <dc:creator>Bluemoon</dc:creator>
      <dc:date>2017-08-24T19:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313997#M84802</link>
      <description>The simplest (the better?) is to move (using tfilecopy) the files to a special folder (archive for example) as soon they have been processed. Using this pattern, you don't have to worry about how many files you have processed last day. Just iterate over the filelist and that's all.</description>
      <pubDate>Thu, 24 Aug 2017 20:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313997#M84802</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-08-24T20:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313998#M84803</link>
      <description>&lt;P&gt;Hi Sir, Thank you for your response..but my client saying without achieve the files we need to process latest files based on last run&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313998#M84803</guid>
      <dc:creator>saivsr</dc:creator>
      <dc:date>2017-09-25T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313999#M84804</link>
      <description>&lt;P&gt;here is how to do that, we&amp;nbsp;had same requirement&amp;nbsp;on getting latest file from FTP,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;basically we compare the files&amp;nbsp;creation date &amp;amp; compare it&amp;nbsp;with previous files&amp;nbsp;&lt;SPAN&gt;creation date &amp;amp; that's how we basically sort the file &amp;amp; get latest file,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;globalMap.get("sortedmtime") == null ? row1.mtime : (row1.mtime &amp;gt;= (long)globalMap.get("sortedmtime"))?row1.mtime:globalMap.get("sortedmtime")&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrE1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157837i273F4422D68690D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrE1.png" alt="0683p000009LrE1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There are so many&amp;nbsp;other solution out there like using tbuffer to store all files &amp;amp; then use tSort to sort&amp;nbsp;data&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 15:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2313999#M84804</guid>
      <dc:creator>nmodi</dc:creator>
      <dc:date>2017-10-03T15:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2314000#M84805</link>
      <description>&lt;P&gt;Thanks Nmodi for your valuable solution..is it working for TOS?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I will try and update you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 11:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2314000#M84805</guid>
      <dc:creator>saivsr</dc:creator>
      <dc:date>2017-10-06T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get latest files from folder based on last run</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2314001#M84806</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we can do with combination of tFileList and tFileExist components.&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Let us Assume A1 is the Source.&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Create A2 and A3 two other folders.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Iterate A1 folders with tFileList and use tFileExists -A2 directory path and global variable "tFileList_1_CURRENT_FILE to check the files in A2.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;After TfileExistsuse condition tFileExist_2_EXISTS then copy the file using tFileCopy to Folder A3.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;At end of run make sync between A1 and A2.&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;After processing new files in A3 archive/delete them&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
 &lt;LI&gt;&lt;SPAN&gt;Like this every run new files will be stored in A3.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 13:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-latest-files-from-folder-based-on-last-run/m-p/2314001#M84806</guid>
      <dc:creator>lvsiva</dc:creator>
      <dc:date>2019-08-02T13:42:35Z</dc:date>
    </item>
  </channel>
</rss>

