<?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 to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297110#M69715</link>
    <description>&lt;P&gt;There are only 2 cases,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One if the string has 9 digits and in between one Hypen then keep as it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is lesser than 9 digits then, we have to remove hypen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above is the rule.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 13:16:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-01T13:16:45Z</dc:date>
    <item>
      <title>How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297105#M69710</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt; 
&lt;P&gt;I have a case where my string value is something like this whose length is 9.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;12345-6789&lt;/P&gt; 
&lt;P&gt;In this case I have to keep the same value as it is.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But when I have the string value 12-23 or 8765-768 I have to remove the hypen(string length is less than 9)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to format like above. Can someone please help as part of this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have the formula like this.&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(Post_Formatting.BILLED_COMPANY_ZIP)== 9&lt;BR /&gt;? Post_Formatting.BILLED_COMPANY_ZIP : Post_Formatting.BILLED_COMPANY_ZIP.replaceAll("-", "")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But it is not working.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297105#M69710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T11:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297106#M69711</link>
      <description>&lt;P&gt;12345-6789 is not a String of length 9, it is of length 10. Your code says....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"When the String is length 9, leave it alone. When it is not length 9 (either less than 9 or greater than 9), remove all '-' characters"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think that is what you want is it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell us what you want with examples? Make sure they are accurate examples.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297106#M69711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T12:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297107#M69712</link>
      <description>&lt;P&gt;I think I got the mistake what I am instructing Talend through below code.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(Post_Formatting.BILLED_COMPANY_ZIP)== 9&lt;BR /&gt;? Post_Formatting.BILLED_COMPANY_ZIP : Post_Formatting.BILLED_COMPANY_ZIP.replaceAll("-", "")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I will correct this as&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(Post_Formatting.BILLED_COMPANY_ZIP)== 10&lt;BR /&gt;? Post_Formatting.BILLED_COMPANY_ZIP : Post_Formatting.BILLED_COMPANY_ZIP.replaceAll("-", "")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Requirement is:&lt;/P&gt; 
&lt;P&gt;When The string has 9 digit value and in between it has hypen(so it is 10 length as you said) I want keep this as it is, else remove the hypen.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297107#M69712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297108#M69713</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;please find the attachment and solution. if its correct give as resolved and kudos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row4.hypen_data&amp;lt;9?StringHandling.EREPLACE(row4.hypen_data,"-",""):row4.hypen_data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Venkata Kiran&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsMz"&gt;Hypen.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297108#M69713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T12:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297109#M69714</link>
      <description>&lt;P&gt;That doesn't cater for over 10 characters? Is that possible? What would be the rule if that did happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297109#M69714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297110#M69715</link>
      <description>&lt;P&gt;There are only 2 cases,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One if the string has 9 digits and in between one Hypen then keep as it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is lesser than 9 digits then, we have to remove hypen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above is the rule.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297110#M69715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297111#M69716</link>
      <description>&lt;P&gt;Your update should work then. Have you tried it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297111#M69716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297112#M69717</link>
      <description>&lt;P&gt;is my solution correct ?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297112#M69717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove hypen for the string values less than 9 and for 9 we have to keep the string value as it is</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297113#M69718</link>
      <description>&lt;P&gt;Hi Kiran,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Since in your condition it does not affect the string values more than 9, I did not use it,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Instead i have just tweaked my formula as below and it worked.&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(LP_Z_SERVICE_ADDRESS.ZIP)== 10&lt;BR /&gt;? LP_Z_SERVICE_ADDRESS.ZIP : LP_Z_SERVICE_ADDRESS.ZIP.replaceAll("-", "")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But thanks for your kind response on this.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-hypen-for-the-string-values-less-than-9-and-for-9/m-p/2297113#M69718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T14:03:33Z</dc:date>
    </item>
  </channel>
</rss>

