<?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 Trying to remove a dash and all numbers after it in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85651#M24499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a new user to SAS so this may sound like an easy question but I can't figure it out. I have a list of numbers that have a dash at the end of the number followed by additional numbers. The numbers before the dash can range in length from 8-12 digits long. I'm trying to remove the dash and all the numbers that follow the dash. Below is an example&lt;/P&gt;&lt;P&gt;12345-1&amp;nbsp; would like it to read as 12345&lt;/P&gt;&lt;P&gt;123456789-00 would like it to read as 123456789&lt;/P&gt;&lt;P&gt;123456789123-002 would like it to read as 123456789123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that makes sense. Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 16:37:16 GMT</pubDate>
    <dc:creator>brywhi11</dc:creator>
    <dc:date>2013-05-24T16:37:16Z</dc:date>
    <item>
      <title>Trying to remove a dash and all numbers after it</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85651#M24499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a new user to SAS so this may sound like an easy question but I can't figure it out. I have a list of numbers that have a dash at the end of the number followed by additional numbers. The numbers before the dash can range in length from 8-12 digits long. I'm trying to remove the dash and all the numbers that follow the dash. Below is an example&lt;/P&gt;&lt;P&gt;12345-1&amp;nbsp; would like it to read as 12345&lt;/P&gt;&lt;P&gt;123456789-00 would like it to read as 123456789&lt;/P&gt;&lt;P&gt;123456789123-002 would like it to read as 123456789123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that makes sense. Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85651#M24499</guid>
      <dc:creator>brywhi11</dc:creator>
      <dc:date>2013-05-24T16:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove a dash and all numbers after it</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85652#M24500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;new_number=scan(number, 1, "-");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85652#M24500</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-24T16:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to remove a dash and all numbers after it</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85653#M24501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! Thank you very much! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-remove-a-dash-and-all-numbers-after-it/m-p/85653#M24501</guid>
      <dc:creator>brywhi11</dc:creator>
      <dc:date>2013-05-24T16:45:07Z</dc:date>
    </item>
  </channel>
</rss>

