<?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 Need to pick latest file from specific file format. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345467#M112984</link>
    <description>&lt;P&gt;Hello Talend Helpers,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;May you please help me for getting the current file from directory. Lets see the scenario&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In Directory we have below files.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ACBACKLOG2017QTR1-RUNDT-FEB152017.txt&lt;BR /&gt;ACBACKLOG2016QTR4-RUNDT-FEB252017.txt&lt;BR /&gt;ACBACKLOG2016QTR3-RUNDT-FEB252017.txt&lt;BR /&gt;ACBACKLOG2016QTR2-RUNDT-FEB182017.txt&lt;BR /&gt;ACBACKLOG2016QTR1-RUNDT-FEB182017.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We need to create a logic to pic only current file. Here we have ACBACKLOG2017QTR1-RUNDT-FEB152017.txt as latest file, because its having latest 2017 QTR 1 data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also need to make sure that we have already processed previous file before picking the latest one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;GopsK&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 12:31:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-08T12:31:48Z</dc:date>
    <item>
      <title>Need to pick latest file from specific file format.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345467#M112984</link>
      <description>&lt;P&gt;Hello Talend Helpers,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;May you please help me for getting the current file from directory. Lets see the scenario&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In Directory we have below files.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ACBACKLOG2017QTR1-RUNDT-FEB152017.txt&lt;BR /&gt;ACBACKLOG2016QTR4-RUNDT-FEB252017.txt&lt;BR /&gt;ACBACKLOG2016QTR3-RUNDT-FEB252017.txt&lt;BR /&gt;ACBACKLOG2016QTR2-RUNDT-FEB182017.txt&lt;BR /&gt;ACBACKLOG2016QTR1-RUNDT-FEB182017.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We need to create a logic to pic only current file. Here we have ACBACKLOG2017QTR1-RUNDT-FEB152017.txt as latest file, because its having latest 2017 QTR 1 data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also need to make sure that we have already processed previous file before picking the latest one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;BR /&gt;GopsK&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345467#M112984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-08T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pick latest file from specific file format.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345468#M112985</link>
      <description>Hi,&lt;BR /&gt;Here is a &lt;A href="https://help.talend.com/search/all?query=tFileList" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tFileList&lt;/A&gt; component which&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;retrieves a set of files or folders based on a filemask pattern and iterates on each unity.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;You can choose&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;to prioritise the folder and file order either by using "Order" option.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto," helvetica=""&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;IMG src="https://community.talend.com/legacyfs/online/55433/1.png_20170309-0019.png" /&gt;</description>
      <pubDate>Thu, 09 Mar 2017 08:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345468#M112985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-09T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pick latest file from specific file format.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345469#M112986</link>
      <description>Simplest logic:
&lt;BR /&gt;[list=*]
&lt;BR /&gt;
&lt;LI&gt;process file&lt;/LI&gt;
&lt;BR /&gt;
&lt;LI&gt;move processed file to archive folder (or rename it, or delete)&lt;/LI&gt;
&lt;BR /&gt;
&lt;BR /&gt;More intelectual - construct file name pattern for input component
&lt;BR /&gt;Like:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;"ACBACKLOG"+TalendDate.formatDate("yyyy",TalendDate.getCurrentDate())+"QTR"+((Integer.valueOf(TalendDate.formatDate("MM",TalendDate.getCurrentDate()))-1)/3+1)+"*.txt"&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 10:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-pick-latest-file-from-specific-file-format/m-p/2345469#M112986</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-09T10:32:02Z</dc:date>
    </item>
  </channel>
</rss>

