<?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 discard the last 4 characters from file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375358#M137790</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Using tFileInputFullRow to read each row one by one, remove or replace the special characters in each row and output it to a new file.&lt;/P&gt;&lt;P&gt;The work flow looks like: tFileInputFullRow--&amp;gt;tJavaRow, where you will put:&lt;/P&gt;&lt;P&gt;row1.myRow.replaceAll("", "");&lt;/P&gt;&lt;P&gt;That should remove anything what is NOT a-z or A-Z or 0-9.&lt;/P&gt;&lt;P&gt;Feel free to let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 04:01:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-23T04:01:37Z</dc:date>
    <item>
      <title>How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375357#M137789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, could you confirm if it is correct for discard the last 09 characteres of each file during the identification of them in the&amp;nbsp;directory?&lt;/P&gt;&lt;P&gt;example: &lt;/P&gt;&lt;P&gt;Actual name: integracaonova-22112021&lt;/P&gt;&lt;P&gt;New name:   integracaonova&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE")) &lt;B&gt;-9.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Thanks a lot.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375357#M137789</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2024-11-15T23:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375358#M137790</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Using tFileInputFullRow to read each row one by one, remove or replace the special characters in each row and output it to a new file.&lt;/P&gt;&lt;P&gt;The work flow looks like: tFileInputFullRow--&amp;gt;tJavaRow, where you will put:&lt;/P&gt;&lt;P&gt;row1.myRow.replaceAll("", "");&lt;/P&gt;&lt;P&gt;That should remove anything what is NOT a-z or A-Z or 0-9.&lt;/P&gt;&lt;P&gt;Feel free to let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 04:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375358#M137790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-23T04:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375359#M137791</link>
      <description>&lt;P&gt;Hello Sabrina, thanks by replay.&lt;/P&gt;&lt;P&gt;I need please remove  N characters always in the of End file name but this character can to change.&lt;/P&gt;&lt;P&gt;example felipe12112021&lt;/P&gt;&lt;P&gt;I need. : felipe&lt;/P&gt;&lt;P&gt;eduardo15122022&lt;/P&gt;&lt;P&gt;I need: eduardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375359#M137791</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-23T09:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375360#M137792</link>
      <description>&lt;P&gt;I am using tfileList for load Csv files but the files have in his name the date and time at the end and I need to remove when will load.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375360#M137792</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-23T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375361#M137793</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You are trying to rename files?&lt;/P&gt;&lt;P&gt;I'm supposing that 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&lt;/P&gt;&lt;P&gt;globalMap.get(tFileList_1_CURRENT_FILE).replaceAll ("_[0-9]_.*$", ""))&lt;/P&gt;&lt;P&gt;Here is a resolved related topic about: &lt;A href="https://community.talend.com/s/question/0D53p00007vCk1DCAS/using-tjava-for-rename-of-current-filename" alt="https://community.talend.com/s/question/0D53p00007vCk1DCAS/using-tjava-for-rename-of-current-filename" target="_blank"&gt;https://community.talend.com/s/question/0D53p00007vCk1DCAS/using-tjava-for-rename-of-current-filename&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375361#M137793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-23T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375362#M137794</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;No, I'm trying only to import some csv's files that have a date at the end of the filename and I need discard this information BEFORE of to use the tFileList component.&lt;/P&gt;&lt;P&gt;I will use the components below to import this csv´s data into different tables in SQL.&lt;/P&gt;&lt;P&gt;How could I just not consider in reading  of these files only these characteres at the end of filename?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Components I will use:&lt;/P&gt;&lt;P&gt;tFileList, tIterateToFlow,tMap,tFixedFlowInput, tJavaRow, tRunJob &lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 14:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375362#M137794</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-23T14:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375363#M137795</link>
      <description>&lt;P&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE")).substring(0, ((String)globalMap.get("tFileList_1_CURRENT_FILE")).length() - 9)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 17:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375363#M137795</guid>
      <dc:creator>billimmer</dc:creator>
      <dc:date>2021-11-23T17:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How discard the last 4 characters from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375364#M137796</link>
      <description>&lt;P&gt;Thanks a lot. I will test it &lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 20:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-discard-the-last-4-characters-from-file/m-p/2375364#M137796</guid>
      <dc:creator>FSternberg</dc:creator>
      <dc:date>2021-11-23T20:37:02Z</dc:date>
    </item>
  </channel>
</rss>

