<?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 compressing hyphens and slashes in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/compressing-hyphens-and-slashes/m-p/742566#M29197</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable that has text as the value, and the text has hyphens and backslashes that I have to get rid of to reclassify the variables and run frequencies appropriately. I read the sas documentation on compress function but it's not quite working. Data and code examples below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples of disch_disp values: Expired d/t ICU, SNF-hospice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; set have;
disch_disp=compress(disch_disp, "/")
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 May 2021 00:59:17 GMT</pubDate>
    <dc:creator>lmyers2</dc:creator>
    <dc:date>2021-05-20T00:59:17Z</dc:date>
    <item>
      <title>compressing hyphens and slashes</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compressing-hyphens-and-slashes/m-p/742566#M29197</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a variable that has text as the value, and the text has hyphens and backslashes that I have to get rid of to reclassify the variables and run frequencies appropriately. I read the sas documentation on compress function but it's not quite working. Data and code examples below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Examples of disch_disp values: Expired d/t ICU, SNF-hospice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; set have;
disch_disp=compress(disch_disp, "/")
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 00:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compressing-hyphens-and-slashes/m-p/742566#M29197</guid>
      <dc:creator>lmyers2</dc:creator>
      <dc:date>2021-05-20T00:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: compressing hyphens and slashes</title>
      <link>https://communities.sas.com/t5/New-SAS-User/compressing-hyphens-and-slashes/m-p/742574#M29198</link>
      <description>&lt;P&gt;If you want to remove both the&amp;nbsp;&lt;SPAN&gt;hyphens and backslashes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;disch_disp=compress(disch_disp, "/-");&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 01:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/compressing-hyphens-and-slashes/m-p/742574#M29198</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2021-05-20T01:22:58Z</dc:date>
    </item>
  </channel>
</rss>

