<?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: Extract data before a specific character in Streaming Analytics</title>
    <link>https://communities.sas.com/t5/Streaming-Analytics/Extract-data-before-a-specific-character/m-p/704148#M226</link>
    <description>&lt;P&gt;The SCAN() function will do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Number_New = scan(number,1,'-');&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Dec 2020 14:41:21 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-12-07T14:41:21Z</dc:date>
    <item>
      <title>Extract data before a specific character</title>
      <link>https://communities.sas.com/t5/Streaming-Analytics/Extract-data-before-a-specific-character/m-p/704147#M225</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have a data set with a bunch of&amp;nbsp;Numbers and then an user number&amp;nbsp;like eg.below. I want to delete all the characters from "-" and include only the numbers before "-" for each number. Any help with SAS code is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Number&lt;/P&gt;&lt;P&gt;4050123456-1&lt;/P&gt;&lt;P&gt;4098765478-1&lt;/P&gt;&lt;P&gt;4901898089898999-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want:&lt;/P&gt;&lt;P&gt;Number_New&lt;/P&gt;&lt;P&gt;4050123456&lt;/P&gt;&lt;P&gt;4098765478&lt;/P&gt;&lt;P&gt;4901898089898999&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 14:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Streaming-Analytics/Extract-data-before-a-specific-character/m-p/704147#M225</guid>
      <dc:creator>Talita28</dc:creator>
      <dc:date>2020-12-07T14:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data before a specific character</title>
      <link>https://communities.sas.com/t5/Streaming-Analytics/Extract-data-before-a-specific-character/m-p/704148#M226</link>
      <description>&lt;P&gt;The SCAN() function will do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Number_New = scan(number,1,'-');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Dec 2020 14:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Streaming-Analytics/Extract-data-before-a-specific-character/m-p/704148#M226</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-07T14:41:21Z</dc:date>
    </item>
  </channel>
</rss>

