<?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: sas concatenate strings without duplicate value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631773#M187211</link>
    <description>&lt;P&gt;Perfect! This is what I want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2020 02:54:35 GMT</pubDate>
    <dc:creator>Suzy_Cat</dc:creator>
    <dc:date>2020-03-13T02:54:35Z</dc:date>
    <item>
      <title>sas concatenate strings without duplicate value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631718#M187190</link>
      <description>&lt;P&gt;Hello helpers:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to concatenate client's contact into one column and do not want it appears multiple times if the same number registered under home/work/mobile.&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; Client_Contact=catx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;','&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,Home_Phone,Work_Phone,Mobile_Phone);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I googled&amp;nbsp;and only found below solution. Just wondered if there is any other better way to achieve it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/42616892/sas-remove-duplicated-words-in-a-string" target="_blank"&gt;https://stackoverflow.com/questions/42616892/sas-remove-duplicated-words-in-a-string&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 22:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631718#M187190</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2020-03-12T22:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: sas concatenate strings without duplicate value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631768#M187209</link>
      <description>Those are the recommended ways and most of the answers from there are users who are on here and would provide very similar answers again anyway.</description>
      <pubDate>Fri, 13 Mar 2020 02:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631768#M187209</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-13T02:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: sas concatenate strings without duplicate value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631769#M187210</link>
      <description>&lt;P&gt;You could reset the values before concatenating?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;H=ifc( Home_Phone&amp;nbsp; &amp;nbsp;= Work_Phone&amp;nbsp; &amp;nbsp;, ' ', Home_Phone&amp;nbsp; );&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;M=ifc( Home_Phone&amp;nbsp; &amp;nbsp;= Mobile_Phone , ' ', Mobile_Phone);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;W=ifc( Work_Phone&amp;nbsp; &amp;nbsp;= Mobile_Phone , ' ', Work_Phone&amp;nbsp; );&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Client_Contact=catx(&lt;FONT color="#800080"&gt;','&lt;/FONT&gt;, H, M, W);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, if you had many values in the list, using call sort&lt;EM&gt;x&lt;/EM&gt; allows you to only compare to the next value in the list rather than compare to the rest of the whole list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 02:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631769#M187210</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-13T02:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: sas concatenate strings without duplicate value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631773#M187211</link>
      <description>&lt;P&gt;Perfect! This is what I want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 02:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-concatenate-strings-without-duplicate-value/m-p/631773#M187211</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2020-03-13T02:54:35Z</dc:date>
    </item>
  </channel>
</rss>

