<?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: read multiple csv filenames with timestamp in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245039#M31019</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need solution to read files from different folders and also pick the latest files, if there are mutliple copies of files placed in a folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 12:44:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-15T12:44:56Z</dc:date>
    <item>
      <title>read multiple csv filenames with timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245035#M31015</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to talend. I'm trying to work on a job for below scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.Daily multiple csv files with filename having timestamp are loaded in ftp folder.&lt;/P&gt;
&lt;P&gt;2. I need to read each csv file and work and load it into separate table in mysql.&lt;/P&gt;
&lt;P&gt;Example of filenames:&lt;/P&gt;
&lt;P&gt;AAA_21042020_144530.csv&lt;/P&gt;
&lt;P&gt;BBB_21042020_144535.csv&lt;/P&gt;
&lt;P&gt;CCC_21042020_144538.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These three files have to be read using separate tfileInputDelimited option and load into respective tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as the filenames have timestamp which changes daily, we cannot have wildcard option in tfileInput Delimited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After exploring I found, we can use tfileList to iterate through multiple files and use filemask. But to read multiple files with different patterns , multiple tfilelist have to be opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone share a better solution to this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245035#M31015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: read multiple csv filenames with timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245036#M31016</link>
      <description>1 single tFileList connected to an empty tJava which is in turn connected by 3 if triggers to 3 tFileInputDelimited.&lt;BR /&gt;If conditions are based on tFileList_1_CURRENT_FILE to determine which way to go using String.contains() or String.startsWith() methods.</description>
      <pubDate>Sun, 10 May 2020 20:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245036#M31016</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-05-10T20:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: read multiple csv filenames with timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245037#M31017</link>
      <description>&lt;P&gt;Thank you TRF for sharing the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know, how do I fetch files from multiple folders into tFileList and carry out the remaining steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scenario:&lt;/P&gt;
&lt;P&gt;1. I have files placed in multiple folders, which i need to read through tFileList.&lt;/P&gt;
&lt;P&gt;2. Then based on filename, I need to load data into corresponding table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For point 2, the solution you provided is working. I need inputs for point 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245037#M31017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-12T08:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: read multiple csv filenames with timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245038#M31018</link>
      <description>&lt;P&gt;Why dont you use the tFileList with regex : _(21042020)_&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and have the list only for the day 21042020&amp;nbsp; (current_date day ?)&lt;BR /&gt;&lt;BR /&gt;and for each in the list order by the second party (&lt;SPAN&gt;_144530.csv) ascending&amp;nbsp; call your open file csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245038#M31018</guid>
      <dc:creator>martel</dc:creator>
      <dc:date>2020-05-12T08:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: read multiple csv filenames with timestamp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245039#M31019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need solution to read files from different folders and also pick the latest files, if there are mutliple copies of files placed in a folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 12:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/read-multiple-csv-filenames-with-timestamp/m-p/2245039#M31019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-15T12:44:56Z</dc:date>
    </item>
  </channel>
</rss>

