<?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 Missing = Null? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33385#M8076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 22:52:47 GMT</pubDate>
    <dc:creator>mnew</dc:creator>
    <dc:date>2011-07-19T22:52:47Z</dc:date>
    <item>
      <title>Missing = Null?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33383#M8074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts:&lt;/P&gt;&lt;P&gt;A beginner question. Is Null the same as Missing when we write Where clause in SAS? I tested a few. They seem to bring back the same results. Not sure if it is entirely true everywhere?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 22:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33383#M8074</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-07-18T22:14:32Z</dc:date>
    </item>
    <item>
      <title>Missing = Null?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33384#M8075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to this article they are: &lt;A href="http://www.sascommunity.org/wiki/Tips:Use_IS_MISSING_and_IS_NULL_with_Numeric_or_Character_Variables"&gt;http://www.sascommunity.org/wiki/Tips:Use_IS_MISSING_and_IS_NULL_with_Numeric_or_Character_Variables&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 22:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33384#M8075</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-18T22:22:36Z</dc:date>
    </item>
    <item>
      <title>Missing = Null?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33385#M8076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 22:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33385#M8076</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-07-19T22:52:47Z</dc:date>
    </item>
    <item>
      <title>Missing = Null?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33386#M8077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NULL and MISSING, while very similar, have some semantic differences and use of WHERE statements/clauses can produce different results depending upon the engine (e.g., BASE, ACCESS).&amp;nbsp; The following test case demonstrates this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Test showing that a WHERE applied to a DBMS table via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; an ACCESS engine will produce results different from those&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; produced when the WHERE is applied to a SAS data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The difference is caused by the treatment of NULL/missing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; values.&amp;nbsp; SAS considers missing values as less than all other&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; values while the DBMSs don't consider them at all.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo;&lt;/P&gt;&lt;P&gt; length i 8;&lt;/P&gt;&lt;P&gt; length x 8;&lt;/P&gt;&lt;P&gt; length y $ 1;&lt;/P&gt;&lt;P&gt; alpha="aAzZ09";&lt;/P&gt;&lt;P&gt; do i=1 to 30;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=floor(ranuni(1)*3);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ( ranuni(1) &amp;lt; 0.1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp; then x=.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; substr(y,1,1)=substr(alpha,floor(ranuni(1)*length(alpha))+1,1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if ( ranuni(1) &amp;lt; 0.1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp; then y="";&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; drop alpha;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=foo(where=(x &amp;lt; 2));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&amp;nbsp; Define library X, specifying an ACCESS engine...&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x.foo;&lt;/P&gt;&lt;P&gt; set foo;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data bar;&lt;/P&gt;&lt;P&gt; set x.foo(where=(x &amp;lt; 2));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=bar;&lt;/P&gt;&lt;P&gt;by i;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=bar;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Missing-Null/m-p/33386#M8077</guid>
      <dc:creator>scmebu</dc:creator>
      <dc:date>2011-07-20T14:32:11Z</dc:date>
    </item>
  </channel>
</rss>

