<?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 blank value not counted as null value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112709#M31181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains only alphanumerical values. The column Info1 contains value that are blank (empty).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use the following procedure to count null values in a table, but for this table the result returned is 0, but I see that some values are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(Info1) as i from table1&lt;/P&gt;&lt;P&gt;where Info1 is null&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried this but it also return 0 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(Info1) as i from table1&lt;/P&gt;&lt;P&gt;where Info1=''&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 21:05:42 GMT</pubDate>
    <dc:creator>nicnad</dc:creator>
    <dc:date>2012-07-19T21:05:42Z</dc:date>
    <item>
      <title>blank value not counted as null value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112709#M31181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains only alphanumerical values. The column Info1 contains value that are blank (empty).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use the following procedure to count null values in a table, but for this table the result returned is 0, but I see that some values are blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(Info1) as i from table1&lt;/P&gt;&lt;P&gt;where Info1 is null&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried this but it also return 0 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select count(Info1) as i from table1&lt;/P&gt;&lt;P&gt;where Info1=''&lt;BR /&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 21:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112709#M31181</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2012-07-19T21:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: blank value not counted as null value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112710#M31182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;COUNT(info1) counts non-missing info1 values. Use COUNT(*) instead. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 21:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112710#M31182</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-07-19T21:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: blank value not counted as null value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112711#M31183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG is dead on this. Count() has tricked me when I first started using Proc SQL. In comparison, sum() is more predictable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select sum(missing(Info1)) as i from table1&lt;/P&gt;&lt;P&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 22:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112711#M31183</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-19T22:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: blank value not counted as null value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112712#M31184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for this precision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 15:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/blank-value-not-counted-as-null-value/m-p/112712#M31184</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2012-07-20T15:04:10Z</dc:date>
    </item>
  </channel>
</rss>

