<?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 remove special character from a specific variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400238#M278606</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;Is anyone can help me &amp;nbsp;to remove a special character from a variable regardless of its order in the variable.&lt;BR /&gt;here is the example:&lt;BR /&gt;what I have:&lt;BR /&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mesure&lt;BR /&gt;10/5201 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.012&lt;BR /&gt;10/6522 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.452&lt;BR /&gt;306/312 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.003&lt;BR /&gt;AC115/9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.855&lt;/P&gt;&lt;P&gt;what I want (just delete the slash)&lt;BR /&gt;&lt;SPAN&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mesure&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;105201 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;106522 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.452&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;306312 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.003&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AC1159 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.855&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My database contains more than a million ids that contain special characters (/, -,*,.) that I just want to search for and remove them&amp;nbsp;by keeping the other characters.&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2017 12:52:58 GMT</pubDate>
    <dc:creator>soumri</dc:creator>
    <dc:date>2017-10-02T12:52:58Z</dc:date>
    <item>
      <title>remove special character from a specific variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400238#M278606</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;Is anyone can help me &amp;nbsp;to remove a special character from a variable regardless of its order in the variable.&lt;BR /&gt;here is the example:&lt;BR /&gt;what I have:&lt;BR /&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mesure&lt;BR /&gt;10/5201 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.012&lt;BR /&gt;10/6522 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.452&lt;BR /&gt;306/312 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.003&lt;BR /&gt;AC115/9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.855&lt;/P&gt;&lt;P&gt;what I want (just delete the slash)&lt;BR /&gt;&lt;SPAN&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mesure&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;105201 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;106522 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.452&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;306312 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.003&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AC1159 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.855&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My database contains more than a million ids that contain special characters (/, -,*,.) that I just want to search for and remove them&amp;nbsp;by keeping the other characters.&lt;BR /&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 12:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400238#M278606</guid>
      <dc:creator>soumri</dc:creator>
      <dc:date>2017-10-02T12:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: remove special character from a specific variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400242#M278607</link>
      <description>&lt;P&gt;Use the COMPRESS&amp;nbsp;function&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0fcshr0ir3h73n1b845c4aq58hz.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0fcshr0ir3h73n1b845c4aq58hz.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400242#M278607</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-10-02T13:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: remove special character from a specific variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400249#M278608</link>
      <description>&lt;P&gt;As I understand I have to put this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;set have;&lt;/P&gt;&lt;P&gt;id=compress(id, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 'k');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this true?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400249#M278608</guid>
      <dc:creator>soumri</dc:creator>
      <dc:date>2017-10-02T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: remove special character from a specific variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400250#M278609</link>
      <description>&lt;P&gt;No.&amp;nbsp; Read the documentation, all you need is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;id=compress(id, '/');&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 13:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400250#M278609</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-02T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: remove special character from a specific variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400267#M278610</link>
      <description>&lt;P&gt;Yes, it works well. tank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-special-character-from-a-specific-variable/m-p/400267#M278610</guid>
      <dc:creator>soumri</dc:creator>
      <dc:date>2017-10-02T14:11:37Z</dc:date>
    </item>
  </channel>
</rss>

