<?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 ignore blank fields in table? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129443#M35288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each column (variable) there are blanks fields, but which ones are blank vary from variable to variable. I want to tell sas to ignore the blanks when I'm analyzing a variable. Don't count them, don't do anything. Is there a way to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 12:33:31 GMT</pubDate>
    <dc:creator>nikknock</dc:creator>
    <dc:date>2013-10-31T12:33:31Z</dc:date>
    <item>
      <title>How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129440#M35285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if there is a command that will make SAS ignore any blank fields in a table I imported from Excel? For example, when I run a Proc Freq, I don't want SAS to count or analzye any blank fields at all, any way I can do this? I'm a SAS newbie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 20:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129440#M35285</guid>
      <dc:creator>nikknock</dc:creator>
      <dc:date>2013-10-30T20:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129441#M35286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring to variables with missing values for all observations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 21:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129441#M35286</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-10-30T21:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129442#M35287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest option(s) would be to remove the observations:&lt;/P&gt;&lt;P&gt;A)&amp;nbsp; from the dataset before running your proc freq.&lt;/P&gt;&lt;P&gt;B) using a where filter in your proc freq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 22:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129442#M35287</guid>
      <dc:creator>Zin</dc:creator>
      <dc:date>2013-10-30T22:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129443#M35288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For each column (variable) there are blanks fields, but which ones are blank vary from variable to variable. I want to tell sas to ignore the blanks when I'm analyzing a variable. Don't count them, don't do anything. Is there a way to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129443#M35288</guid>
      <dc:creator>nikknock</dc:creator>
      <dc:date>2013-10-31T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129444#M35289</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;If you want to keep your original data unchanged then as &lt;A __default_attr="822810" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; said you could use a where clause in your proc freq statement so that the blank fields are not considered at all for analysis, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc freq data=have(where=(var1 ne ''));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following proc freq details might also be of help with respect to missing values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_sect016.htm" title="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_sect016.htm"&gt;Base SAS(R) 9.2 Procedures Guide: Statistical Procedures, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129444#M35289</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2013-10-31T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore blank fields in table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129445#M35290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer depends on what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are talking about empty cells in an Excel spreadsheet then those will normally have been converted to missing values in the SAS dataset. Almost all analysis in SAS will treat missing values properly.&amp;nbsp; So if you have three variables (columns in Excel) and each one has a different number of non-missing values when you run PROC MEANS it will use the proper N to calculate the mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-ignore-blank-fields-in-table/m-p/129445#M35290</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-31T13:38:23Z</dc:date>
    </item>
  </channel>
</rss>

