<?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: [resolved] Get file name without extension in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210150#M8701</link>
    <description>Change the code to:&lt;BR /&gt;((String)globalMap.get("tFileList_2_CURRENT_FILE")).substring(0,((String)globalMap.get("tFileList_2_CURRENT_FILE")).indexOf("."))+"_Text.txt"</description>
    <pubDate>Thu, 25 Feb 2016 09:00:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-25T09:00:49Z</dc:date>
    <item>
      <title>[resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210147#M8698</link>
      <description>Hi, 
&lt;BR /&gt;Will it be possible to get the file name alone with out the extension of file. 
&lt;BR /&gt;Example: KPPADF015-D00000-G0017700.xml 
&lt;BR /&gt;After processing the file at the output i want KPPADF015-D00000-G0017700_Text.txt 
&lt;BR /&gt;If i use (String)globalMap.get("tFileList_2_CURRENT_FILE")+"_Text"+".txt" 
&lt;BR /&gt;i am getting KPPADF015-D00000-G0017700.xml_Text.txt 
&lt;BR /&gt;I want the above output with out the file extension i.e,, KPPADF015-D00000-G0017700_Text.txt 
&lt;BR /&gt;For getting this i am using&amp;nbsp;StringHandling.LEFT(((String)globalMap.get("tFileList_2_CURRENT_FILE")),25)+"_Text"+".txt" 
&lt;BR /&gt;The problem with the above approach is if the file name length is more than 25 letters it will not work. Is there any talend method to handle this dynamically with respect to file name alone with out extension.</description>
      <pubDate>Thu, 25 Feb 2016 05:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210147#M8698</guid>
      <dc:creator>tvsr984</dc:creator>
      <dc:date>2016-02-25T05:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210148#M8699</link>
      <description>Hi
&lt;BR /&gt;Try this expression:
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("tFileList_2_CURRENT_FILE").substring(0,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("tFileList_2_CURRENT_FILE").indexOf(".")&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;)+"_Text.txt"&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 25 Feb 2016 06:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210148#M8699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T06:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210149#M8700</link>
      <description>Hi,&lt;BR /&gt;It shows the following error&lt;BR /&gt;compilation problems:&amp;nbsp;&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	The method substring(int, String) is undefined for the type Object&lt;BR /&gt;	The method indexOf(String) is undefined for the type Object&lt;BR /&gt;	at gale.test_it_0_1.TEST_IT.tFileList_5Process(TEST_IT.java:563)&lt;BR /&gt;	at gale.test_it_0_1.TEST_IT.runJobInTOS(TEST_IT.java:3132)&lt;BR /&gt;	at gale.test_it_0_1.TEST_IT.main(TEST_IT.java:2982)</description>
      <pubDate>Thu, 25 Feb 2016 06:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210149#M8700</guid>
      <dc:creator>tvsr984</dc:creator>
      <dc:date>2016-02-25T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210150#M8701</link>
      <description>Change the code to:&lt;BR /&gt;((String)globalMap.get("tFileList_2_CURRENT_FILE")).substring(0,((String)globalMap.get("tFileList_2_CURRENT_FILE")).indexOf("."))+"_Text.txt"</description>
      <pubDate>Thu, 25 Feb 2016 09:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210150#M8701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210151#M8702</link>
      <description>Thanks a lot!!. It works perfectly.
&lt;BR /&gt;Also i am able to acheive the same result using the following
&lt;BR /&gt;((String)globalMap.get("tFileList_2_CURRENT_FILE")).replaceAll(".xml", "")
&lt;BR /&gt;Either way it works!!!</description>
      <pubDate>Thu, 25 Feb 2016 09:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210151#M8702</guid>
      <dc:creator>tvsr984</dc:creator>
      <dc:date>2016-02-25T09:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get file name without extension</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210152#M8703</link>
      <description>Great, thanks for your feedback!</description>
      <pubDate>Thu, 25 Feb 2016 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-file-name-without-extension/m-p/2210152#M8703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-25T09:37:20Z</dc:date>
    </item>
  </channel>
</rss>

