<?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: How to extract numeric values with out any note in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718640#M222427</link>
    <description>&lt;P&gt;Use the NOTDIGIT function. Your condition will return true if there's &lt;EM&gt;any&lt;/EM&gt; digit in the string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input mixed $10.;
if notdigit(mixed) = 0 then number = input(mixed,best.);
datalines;
Johnroy
17533
45688
BET32L
MINE20
56
12
ALPHA65
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Feb 2021 15:51:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-02-11T15:51:43Z</dc:date>
    <item>
      <title>How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718627#M222419</link>
      <description>I have data&lt;BR /&gt;Mixed&lt;BR /&gt;Johnroy&lt;BR /&gt;17533&lt;BR /&gt;45688&lt;BR /&gt;BET32L&lt;BR /&gt;MINE20&lt;BR /&gt;56&lt;BR /&gt;12&lt;BR /&gt;ALPHA65&lt;BR /&gt;&lt;BR /&gt;So I need to create new variable that contains only numeric values I tried below code..&lt;BR /&gt;Data BMW;&lt;BR /&gt;Set existing;&lt;BR /&gt;If ~missing(compress(mixed,,"kd")) then Number=input(name,best.);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;When I ran this code I got note as INVALID Argument to the function INPUT.....How to handle this situation..I put ?? before best. it works but I'm not satisfied with that one because it suppresses that note ..is there any possibilities to do that job...</description>
      <pubDate>Thu, 11 Feb 2021 15:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718627#M222419</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-11T15:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718628#M222420</link>
      <description>&lt;P&gt;That sounds strange.&amp;nbsp; You added ?? to get rid of the note, and now you're unhappy because you're not getting the note?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While you're on the road to correcting the problem, consider what the result should be for each of these inputs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MINE20&lt;/P&gt;
&lt;P&gt;3.14&lt;/P&gt;
&lt;P&gt;A1B2C3&lt;/P&gt;
&lt;P&gt;-40&lt;/P&gt;
&lt;P&gt;WD10-40&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clarifying your objective would help in developing the right program.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718628#M222420</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-02-11T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718629#M222421</link>
      <description>Without giving ?? I'm getting output with correct values..but also getting note:&lt;BR /&gt;Invalid argument for Input function..</description>
      <pubDate>Thu, 11 Feb 2021 15:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718629#M222421</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-11T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718630#M222422</link>
      <description>&lt;P&gt;See if this gives you a likely clue:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If ~missing(compress(&lt;FONT size="5" color="#FF00FF"&gt;&lt;STRONG&gt;mixed&lt;/STRONG&gt;&lt;/FONT&gt;,,"kd")) then Number=input(&lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/FONT&gt;,best.);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I think that you meant to use mixed in both places.&lt;/P&gt;
&lt;P&gt;If not then you need to provide values for NAME.&lt;/P&gt;
&lt;P&gt;If the variable NAME has not been defined prior to this statement then it was created as NUMERIC, with missing values. Then the missing numeric value was attempted to turn into character for use by the INPUT function.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718630#M222422</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-11T15:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718632#M222424</link>
      <description>I apologized for that mistake..it's not Name it's mixed.&lt;BR /&gt;I tried new way now I'm getting&lt;BR /&gt;&lt;BR /&gt;If ~missing(compress(mixed,,"kd")) And missing(compress(mixed, , "d") then number=input(mixed,best.)</description>
      <pubDate>Thu, 11 Feb 2021 15:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718632#M222424</guid>
      <dc:creator>sasuser123123</dc:creator>
      <dc:date>2021-02-11T15:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numeric values with out any note</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718640#M222427</link>
      <description>&lt;P&gt;Use the NOTDIGIT function. Your condition will return true if there's &lt;EM&gt;any&lt;/EM&gt; digit in the string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input mixed $10.;
if notdigit(mixed) = 0 then number = input(mixed,best.);
datalines;
Johnroy
17533
45688
BET32L
MINE20
56
12
ALPHA65
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-numeric-values-with-out-any-note/m-p/718640#M222427</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-11T15:51:43Z</dc:date>
    </item>
  </channel>
</rss>

