<?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 judge whether a maro variable is a pure numeric in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103965#M29055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let notpure=123aqw4567;&lt;/P&gt;&lt;P&gt;%put %sysfunc(notdigit(&amp;amp;notpure.));&lt;/P&gt;&lt;P&gt;%let pure=12345;&lt;/P&gt;&lt;P&gt;%put %sysfunc(notdigit(&amp;amp;pure.));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 17:21:28 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-08-24T17:21:28Z</dc:date>
    <item>
      <title>How to judge whether a maro variable is a pure numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103964#M29054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know whether a macro&amp;nbsp; variable is a pure numeric or it include some characters, how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:the macro&amp;nbsp; variable &amp;amp;notpure is NOT a pure numeric, it includes some characters('aqw').how to know this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let notpure=123aqw4567;&lt;/P&gt;&lt;P&gt;%let pure=12345;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 16:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103964#M29054</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-24T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to judge whether a maro variable is a pure numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103965#M29055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let notpure=123aqw4567;&lt;/P&gt;&lt;P&gt;%put %sysfunc(notdigit(&amp;amp;notpure.));&lt;/P&gt;&lt;P&gt;%let pure=12345;&lt;/P&gt;&lt;P&gt;%put %sysfunc(notdigit(&amp;amp;pure.));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 17:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103965#M29055</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-24T17:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to judge whether a maro variable is a pure numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103966#M29056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Art!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 17:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103966#M29056</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-24T17:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to judge whether a maro variable is a pure numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103967#M29057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use the SAS supplied macro DATATYP ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 17:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103967#M29057</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-08-24T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to judge whether a maro variable is a pure numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103968#M29058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you Tom!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;BR /&gt;%let a=123;&lt;BR /&gt;%let b=a12;&lt;BR /&gt;%put 1:%DATATYP(&amp;amp;a);&lt;BR /&gt;%put 2:%DATATYP(&amp;amp;b);&lt;BR /&gt;%if %DATATYP(&amp;amp;b)=CHAR %then %put char;&lt;BR /&gt;%if %DATATYP(&amp;amp;b)=NUMERIC %then %put #;&lt;BR /&gt;%mend test;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 17:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-judge-whether-a-maro-variable-is-a-pure-numeric/m-p/103968#M29058</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-27T17:51:56Z</dc:date>
    </item>
  </channel>
</rss>

