<?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: delete first 7 characters in column in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306427#M77971</link>
    <description>&lt;P&gt;in tmap first check the length of the string like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row3.test)&amp;gt;7 ? (row3.test).substring(7,StringHandling.LEN(row3.test)): row3.test&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 09:30:32 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-03-08T09:30:32Z</dc:date>
    <item>
      <title>delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306426#M77970</link>
      <description>&lt;P&gt;Hi, I just started with Talend and am learning a lot. But I have an issue I can't resolve and haven't found a solution to yet.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a table with combined info. It consists of postal code and address and I want it split.Example: "6093 EA Heythuysen". It has to split in "6093 EA" and "Heythuysen".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Via tMap I have added the column twice to the right side.&lt;/P&gt; 
&lt;P&gt;In the first I did a stringhandling.LEFT on the first 7 positions and this works. I get the 6093EA.&lt;/P&gt; 
&lt;P&gt;On the other output I can't use a stringhandling.RIGHT because I have different values with different lengths.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried substring(7) but then I get a string index out of range error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How can I get rid of the first 7 characters?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you in advance from a novice Talend user.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306426#M77970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T09:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306427#M77971</link>
      <description>&lt;P&gt;in tmap first check the length of the string like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row3.test)&amp;gt;7 ? (row3.test).substring(7,StringHandling.LEN(row3.test)): row3.test&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306427#M77971</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-03-08T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306428#M77972</link>
      <description>&lt;P&gt;hi,&lt;/P&gt; 
&lt;P&gt;please find the below attachment and expression in tmap.&lt;/P&gt; 
&lt;P&gt;row3.Data.substring(0,7)&amp;nbsp;&amp;nbsp; ===(For first Five)&lt;/P&gt; 
&lt;P&gt;row3.Data.substring(7,StringHandling.LEN(row3.Data))===(For Last Data)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsNV"&gt;Capture4.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsdD"&gt;Capture5.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306428#M77972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T09:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306429#M77973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The field has a length of 110. I can see this in the right bottom.&lt;/P&gt; 
&lt;P&gt;I've used the command (adres2 is the column):&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(row3.adres2)&amp;gt;7 ?substring(7,StringHandling.LEN(row3.adres2)):row3.adres2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then I get this error:&lt;/P&gt; 
&lt;P&gt;Execution failed : Job compile errors&lt;BR /&gt;At least job "VBO_met_alle_functie" has a compile errors, please fix and export again.&lt;BR /&gt;Error Line: 6994&lt;BR /&gt;Detail Message: The method substring(int, int) is undefined for the type VBO_met_alle_functie&lt;BR /&gt;There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306429#M77973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306430#M77974</link>
      <description>&lt;P&gt;use this&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row3.test)&amp;gt;7 ? (row3.test).substring(7,StringHandling.LEN(row3.test)): row3.test&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306430#M77974</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-03-08T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306431#M77975</link>
      <description>&lt;P&gt;Or just this one!&lt;/P&gt;&lt;PRE&gt;row3.test != null &amp;amp;&amp;amp; row3.test.length() &amp;gt; 7 ? row3.test.substring(7) : row3.test&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306431#M77975</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-08T09:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306432#M77976</link>
      <description>&lt;P&gt;Wow! What a great community in here!&lt;/P&gt;
&lt;P&gt;Thank you for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've used this:&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row3.adres2)&amp;gt;7 ? (row3.adres2).substring(7,StringHandling.LEN(row3.adres2)): row3.adres2 and it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now a finale question. My understanding in Java is at novice level (I'm just learning it since last week). Do you care to explain how this statement is build?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306432#M77976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306433#M77977</link>
      <description>&lt;P&gt;first it will check the lenght is grater than 7 then it will do the substing else it will just pass the same value.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306433#M77977</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-03-08T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306434#M77978</link>
      <description>&lt;P&gt;I prefer to explain mine as it is shorter:&lt;/P&gt;&lt;PRE&gt;row3.adres2 != null &amp;amp;&amp;amp; row3.adres2.length() &amp;gt;= 7 ? row3.adres2.substring(7) : row3.adres2&lt;/PRE&gt;&lt;P&gt;If adres2 is nor null and its length is greater or equal&amp;nbsp;to 7 characters, get 7 first characters, else get adres2 as it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306434#M77978</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-08T10:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306435#M77979</link>
      <description>&lt;P&gt;Both Manohar and TRF, thank you for the solutions and explanation. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306435#M77979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T12:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: delete first 7 characters in column in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306436#M77980</link>
      <description>&lt;P&gt;You're welcome&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-first-7-characters-in-column-in-tMap/m-p/2306436#M77980</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-03-08T12:46:06Z</dc:date>
    </item>
  </channel>
</rss>

