<?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 file name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348395#M115534</link>
    <description>thanks for reply!</description>
    <pubDate>Mon, 19 Dec 2011 11:23:25 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2011-12-19T11:23:25Z</dc:date>
    <item>
      <title>How to get file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348392#M115531</link>
      <description>Hi,&lt;BR /&gt;I want to upload a csv file into sql server table. I need get the file name and use the file name in the job. The file name pattern is "nl_accounts_yyyy.csv". I want to exact the 'yyyy' and store it in table. how i can do that?&lt;BR /&gt;thanks!</description>
      <pubDate>Sat, 16 Nov 2024 12:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348392#M115531</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348393#M115532</link>
      <description>you can use a tfilelist for that, even if you iterate only on one file
&lt;BR /&gt;put a tfilelist on your job plug iterations on on a tjavarow 
&lt;BR /&gt;in the tjavarow press &amp;lt;ctrl&amp;gt;+&amp;lt;space&amp;gt; it will propose a list of variables choose the one you want from tfilelist</description>
      <pubDate>Sun, 18 Dec 2011 09:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348393#M115532</guid>
      <dc:creator>ytuzet</dc:creator>
      <dc:date>2011-12-18T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348394#M115533</link>
      <description>Yang,
&lt;BR /&gt;I would do the following. 
&lt;BR /&gt;tFileList --&amp;gt; tFixedFlowOutput --&amp;gt; tMssqlOutput
&lt;BR /&gt;Following code in tFixedFlowedInput:
&lt;BR /&gt;StringHandling.RIGHT(StringHandling.LEFT(((String)globalMap.get("tFileList_1_CURRENT_FILE")),StringHandling.LEN(((String)globalMap.get("tFileList_1_CURRENT_FILE")))-4),4)
&lt;BR /&gt;
&lt;BR /&gt;If you want to load the file in your database and have the year in an extra column you can do the following:
&lt;BR /&gt;tFileList --&amp;gt; tFileinputdelimited--&amp;gt; tMap --&amp;gt; tMssqlOutput
&lt;BR /&gt;In the extra column in the output part of the tMap you can put the same code from the tfixedflowinput. Every record will then have the year of the file in an extra column.
&lt;BR /&gt;See attached screenshots. 
&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 19 Dec 2011 09:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348394#M115533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-19T09:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348395#M115534</link>
      <description>thanks for reply!</description>
      <pubDate>Mon, 19 Dec 2011 11:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-file-name/m-p/2348395#M115534</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-12-19T11:23:25Z</dc:date>
    </item>
  </channel>
</rss>

