<?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 how to get file name dyanamically in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278054#M53634</link>
    <description>&lt;P&gt;Hi, Below are some of file names:&lt;BR /&gt;1)ut_full_load_rta_fast_1_23_20182312_1523.log&lt;BR /&gt;2)ut_fullload_first_extract_1_20183101_2356.log&lt;BR /&gt;3)ut_catload_dyanamic_overload_fan_2_20182107_1245.log&lt;BR /&gt;and so on&lt;BR /&gt;&lt;BR /&gt;My required output in excel to get Table Names from above file names as below respectively:&lt;BR /&gt;1)rta_fast&lt;BR /&gt;2)first_extract&lt;BR /&gt;3)dyanamic_overload_fan&lt;BR /&gt;&lt;BR /&gt;Can anyone help on this?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 17:51:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-23T17:51:15Z</dc:date>
    <item>
      <title>how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278054#M53634</link>
      <description>&lt;P&gt;Hi, Below are some of file names:&lt;BR /&gt;1)ut_full_load_rta_fast_1_23_20182312_1523.log&lt;BR /&gt;2)ut_fullload_first_extract_1_20183101_2356.log&lt;BR /&gt;3)ut_catload_dyanamic_overload_fan_2_20182107_1245.log&lt;BR /&gt;and so on&lt;BR /&gt;&lt;BR /&gt;My required output in excel to get Table Names from above file names as below respectively:&lt;BR /&gt;1)rta_fast&lt;BR /&gt;2)first_extract&lt;BR /&gt;3)dyanamic_overload_fan&lt;BR /&gt;&lt;BR /&gt;Can anyone help on this?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 17:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278054#M53634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T17:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278055#M53635</link>
      <description>I suppose you are using a tFileList, so the filename is associated to the variable tFileList_1_CURRENT_FILE. Using a regex you can get what you want for example into an other global variable:
&lt;BR /&gt;globalMap.put("TableName", ((String) globalMap.get(tFileList_1_CURRENT_FILE).replaceAll("^ut_.*load_", "")).replaceAll ("_[0-9]_.*$", ""))
&lt;BR /&gt;It's possible there is a syntax error, sorry I can try just now.
&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Tue, 23 Oct 2018 20:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278055#M53635</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-23T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278056#M53636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for Reply&lt;/P&gt;&lt;P&gt;I am getting perfect output but there are some other files which look like:&lt;/P&gt;&lt;P&gt;ut_load_fast_read_20181212_1524&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required Table Name :&amp;nbsp;&lt;SPAN&gt;fast_read&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 06:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278056#M53636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278057#M53637</link>
      <description>&lt;P&gt;replaceAll("ut_.*load_", "").replaceAll("_\\d{0,}_.*","");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 09:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278057#M53637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T09:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278058#M53638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;This Solution worked.&lt;/P&gt;&lt;P&gt;Can you please explain what does&amp;nbsp;&lt;STRONG&gt;replaceAll("_\\d{0,}_.*","")&lt;/STRONG&gt;&amp;nbsp; mean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278058#M53638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to get file name dyanamically</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278059#M53639</link>
      <description>&lt;P&gt;it replaces all substrings of type &amp;lt;_&amp;gt;&amp;lt;any number of digits&amp;gt;&amp;lt;_&amp;gt;&amp;lt;anything after that&amp;gt; with &amp;lt;""&amp;gt; i.e. empty string.&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;regards&lt;/P&gt;
&lt;P&gt;chandra kant&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 11:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-get-file-name-dyanamically/m-p/2278059#M53639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T11:25:00Z</dc:date>
    </item>
  </channel>
</rss>

