<?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: Urgent Req: Finding out Number of Missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75961#M16380</link>
    <description>[Sorry - SAS website server hangs with a more detailed post]&lt;BR /&gt;
&lt;BR /&gt;
With PROC SQL (similar to other SAS dataset option/parameter specifications), explore using the (KEEP=_NUMERIC_) parameter to select all SAS variables of a particular type.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 02 Mar 2009 17:16:09 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-03-02T17:16:09Z</dc:date>
    <item>
      <title>Urgent Req: Finding out Number of Missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75959#M16378</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset with approx 40 variables which are integer as well as string datatypes. I would like to find out number of missing values and number of non missing values for each variable and output them to a output dataset.&lt;BR /&gt;
&lt;BR /&gt;
Rather than hardcoding the variable names in proc sql i would like to automate them.&lt;BR /&gt;
&lt;BR /&gt;
Thanks &amp;amp; Regards&lt;BR /&gt;
Samuel</description>
      <pubDate>Mon, 02 Mar 2009 06:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75959#M16378</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-02T06:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent Req: Finding out Number of Missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75960#M16379</link>
      <description>test reply - ignore.</description>
      <pubDate>Mon, 02 Mar 2009 17:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75960#M16379</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-02T17:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent Req: Finding out Number of Missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75961#M16380</link>
      <description>[Sorry - SAS website server hangs with a more detailed post]&lt;BR /&gt;
&lt;BR /&gt;
With PROC SQL (similar to other SAS dataset option/parameter specifications), explore using the (KEEP=_NUMERIC_) parameter to select all SAS variables of a particular type.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 02 Mar 2009 17:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75961#M16380</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-02T17:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent Req: Finding out Number of Missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75962#M16381</link>
      <description>[So I am breaking it up into two parts]&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  has SAS product documentation and supplemental technical papers - the site's SEARCH facility can be used or consider the Google advanced search argument below which yields matching search results on the site using your topic (note that the site parameter must be in lowercase characters or it is ignored by Google):&lt;BR /&gt;
&lt;BR /&gt;
proc sql data set options site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 02 Mar 2009 17:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75962#M16381</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-02T17:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent Req: Finding out Number of Missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75964#M16383</link>
      <description>Hi Samuel&lt;BR /&gt;
That should do the job.&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
  &lt;BR /&gt;
&lt;BR /&gt;
data have;&lt;BR /&gt;
  infile datalines truncover;&lt;BR /&gt;
  input var1 $1-2 var2 3-4 ;&lt;BR /&gt;
datalines;&lt;BR /&gt;
a 1&lt;BR /&gt;
  2&lt;BR /&gt;
   &lt;BR /&gt;
   &lt;BR /&gt;
e 4&lt;BR /&gt;
;&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
  select 'sum(missing('||name||')) as '||name into :SelList2 separated by ', '&lt;BR /&gt;
    from dictionary.columns&lt;BR /&gt;
      where libname='WORK' and memname='HAVE';&lt;BR /&gt;
&lt;BR /&gt;
  create table want as&lt;BR /&gt;
    select &amp;amp;SelList2  &lt;BR /&gt;
      from have;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
title 'N Missings per Variable';&lt;BR /&gt;
proc print data =want noobs;&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 02 Mar 2009 22:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-Req-Finding-out-Number-of-Missing-values/m-p/75964#M16383</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-03-02T22:25:13Z</dc:date>
    </item>
  </channel>
</rss>

