<?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 Number from String? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31597#M7526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do the same in the JMP Formula editor? Extract a number from a string that is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 May 2013 11:36:22 GMT</pubDate>
    <dc:creator>JesperJohansen</dc:creator>
    <dc:date>2013-05-23T11:36:22Z</dc:date>
    <item>
      <title>Extract Number from String?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31594#M7523</link>
      <description>Seems like there should be an easy enough solution for this...I have just had difficulting thinking of the words to find that solution.&lt;BR /&gt;
&lt;BR /&gt;
Example: I'd like to take the class list below and extract the numeric values from the string variables.&lt;BR /&gt;
&lt;BR /&gt;
MATH400&lt;BR /&gt;
BUS450&lt;BR /&gt;
SCI310a&lt;BR /&gt;
SCI310b&lt;BR /&gt;
HIST299&lt;BR /&gt;
&lt;BR /&gt;
Output&lt;BR /&gt;
400&lt;BR /&gt;
450&lt;BR /&gt;
310&lt;BR /&gt;
310&lt;BR /&gt;
299&lt;BR /&gt;
&lt;BR /&gt;
Is there an easy way to do this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 16 Jul 2008 21:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31594#M7523</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-16T21:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Number from String?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31595#M7524</link>
      <description>In a DATA step, use the COMPRESS function in a SAS variable assignment statement to eliminate the non-numeric characters, and use UPCASE to convert lower to uppercase to reduce the list of variables specified in the COMPRESS function argument list.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 17 Jul 2008 02:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31595#M7524</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-07-17T02:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Number from String?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31596#M7525</link>
      <description>That works great.  I just used&lt;BR /&gt;
&lt;BR /&gt;
CourseNum = compress(CourseCode, ' ', 'A')&lt;BR /&gt;
&lt;BR /&gt;
The third parameter, 'A' gets rid of all (A-Z) and (a-z) ...while the second parameter, ' ', does nothing other than hold space for the third parameter.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a ton.&lt;BR /&gt;
Johnny</description>
      <pubDate>Mon, 21 Jul 2008 15:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31596#M7525</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-21T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Number from String?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31597#M7526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I do the same in the JMP Formula editor? Extract a number from a string that is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 11:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Extract-Number-from-String/m-p/31597#M7526</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-05-23T11:36:22Z</dc:date>
    </item>
  </channel>
</rss>

