<?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 If Open_date is non-numeric coding? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/If-Open-date-is-non-numeric-coding/m-p/344658#M273053</link>
    <description>&lt;P&gt;Hi SAS Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to code the following wording in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (&lt;FONT color="#0000ff"&gt;DATE_OPEN is blank&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;or non-numeric&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp;New_variable = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: It is very easy to code the blue color portion, but I do not know how to code the red color portion. Could someone help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (&lt;FONT color="#0000ff"&gt;DATE_OPEN&amp;nbsp;= ' '&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#ff0000"&gt;or non-numeric&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp;New_variable = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&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;Mirisa&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 15:06:28 GMT</pubDate>
    <dc:creator>dunga</dc:creator>
    <dc:date>2017-03-27T15:06:28Z</dc:date>
    <item>
      <title>If Open_date is non-numeric coding?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Open-date-is-non-numeric-coding/m-p/344658#M273053</link>
      <description>&lt;P&gt;Hi SAS Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was asked to code the following wording in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (&lt;FONT color="#0000ff"&gt;DATE_OPEN is blank&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;or non-numeric&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp;New_variable = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q: It is very easy to code the blue color portion, but I do not know how to code the red color portion. Could someone help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (&lt;FONT color="#0000ff"&gt;DATE_OPEN&amp;nbsp;= ' '&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#ff0000"&gt;or non-numeric&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp;New_variable = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&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;Mirisa&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Open-date-is-non-numeric-coding/m-p/344658#M273053</guid>
      <dc:creator>dunga</dc:creator>
      <dc:date>2017-03-27T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: If Open_date is non-numeric coding?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Open-date-is-non-numeric-coding/m-p/344666#M273054</link>
      <description>&lt;P&gt;There are number of ways to see if a variable could be numeric. Easiest might be to attempt a conversion to numeric and see if the result is missing or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or (input(date_open,best16.) = .)&lt;/P&gt;
&lt;P&gt;works for your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However since you have a variable that has DATE in the name then we might need to consider what you might mean by "non-numeric" if the value is something like 01/25/2017 or 3Jan2017.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also does your definition of "nonnumeric" exclude all forms that may have non-digits such as an arithmetic operation&amp;nbsp; "3+5", or data such as 1.3E12? Some time clarification of terms is needed as they can get situational for data processing.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Open-date-is-non-numeric-coding/m-p/344666#M273054</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-27T15:33:24Z</dc:date>
    </item>
  </channel>
</rss>

