<?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 how to replace the two consecutive special characters with single character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-replace-the-two-consecutive-special-characters-with/m-p/815810#M321984</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have string with two colons (::) and would like to repalce this two colons with single special charcters like '@' or '$' or&amp;nbsp; ',' or ';'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String : "test1::test2::test3::test4::test5::"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected out put string :&amp;nbsp;&amp;nbsp;"test1,test2,test3,test4,test5"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rajasekhar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2022 11:01:15 GMT</pubDate>
    <dc:creator>raja777pharma</dc:creator>
    <dc:date>2022-05-31T11:01:15Z</dc:date>
    <item>
      <title>how to replace the two consecutive special characters with single character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-replace-the-two-consecutive-special-characters-with/m-p/815810#M321984</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have string with two colons (::) and would like to repalce this two colons with single special charcters like '@' or '$' or&amp;nbsp; ',' or ';'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String : "test1::test2::test3::test4::test5::"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected out put string :&amp;nbsp;&amp;nbsp;"test1,test2,test3,test4,test5"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rajasekhar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 11:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-replace-the-two-consecutive-special-characters-with/m-p/815810#M321984</guid>
      <dc:creator>raja777pharma</dc:creator>
      <dc:date>2022-05-31T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to replace the two consecutive special characters with single character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-replace-the-two-consecutive-special-characters-with/m-p/815812#M321985</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
string="test1::test2::test3::test4::test5::";
wanted_string=tranwrd(string,'::',',');
/* Remove final comma */
if substr(wanted_string,length(wanted_string))=',' then wanted_string=substr(wanted_string,1,length(wanted_string)-1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2022 11:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-replace-the-two-consecutive-special-characters-with/m-p/815812#M321985</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-31T11:24:47Z</dc:date>
    </item>
  </channel>
</rss>

