<?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 [resolved] Extract part of a file name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198107#M1571</link>
    <description>Hi,
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I need to set a Global Variable based on part of a filename. For instance the file name could be SCC_converted_20141215.xml. I need the get the "SCC" part. It will always be the first part up to the first underscore. It won't always be the same length however.&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; What is the easiest way to do that?
&lt;BR /&gt;Thanks,</description>
    <pubDate>Mon, 15 Dec 2014 18:43:41 GMT</pubDate>
    <dc:creator>ptromblee</dc:creator>
    <dc:date>2014-12-15T18:43:41Z</dc:date>
    <item>
      <title>[resolved] Extract part of a file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198107#M1571</link>
      <description>Hi,
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I need to set a Global Variable based on part of a filename. For instance the file name could be SCC_converted_20141215.xml. I need the get the "SCC" part. It will always be the first part up to the first underscore. It won't always be the same length however.&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; What is the easiest way to do that?
&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 15 Dec 2014 18:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198107#M1571</guid>
      <dc:creator>ptromblee</dc:creator>
      <dc:date>2014-12-15T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Extract part of a file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198108#M1572</link>
      <description>If you know that the file name will contain an underscore and you want to pull anything before that then you can try this 
&lt;BR /&gt;get the file name and put it in a variable 
&lt;BR /&gt;row1.filename == null? null : (row1.filename.contains("-")? (row1.filename.substring(0,StringHandling.INDEX(row1.filename,"-"))) : &amp;lt;do something else&amp;gt;) 
&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Mon, 15 Dec 2014 19:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198108#M1572</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-12-15T19:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Extract part of a file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198109#M1573</link>
      <description>Perferct. Thanks. I got it to work.</description>
      <pubDate>Mon, 15 Dec 2014 20:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198109#M1573</guid>
      <dc:creator>ptromblee</dc:creator>
      <dc:date>2014-12-15T20:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Extract part of a file name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198110#M1574</link>
      <description>Hiii, 
&lt;BR /&gt;I have a file named as 
&lt;B&gt;'xyz_20160504_8000_T.txt'&lt;/B&gt;. Here the 
&lt;B&gt;8000&lt;/B&gt; in the filename is the count of &amp;nbsp;number of rows present in the flatfile. I need to use a if condition where i need to check whether the filecount is equal to the nuumber of rows being uploaded.&amp;nbsp; 
&lt;BR /&gt;So please can anyone tell me how should I extract the number 8000 out of the filename so that I can compare it with the rows being uploaded.&amp;nbsp;</description>
      <pubDate>Tue, 16 Aug 2016 11:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Extract-part-of-a-file-name/m-p/2198110#M1574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-16T11:55:15Z</dc:date>
    </item>
  </channel>
</rss>

