<?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 create a table to count non missing values for hundreds of columns? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412048#M100744</link>
    <description>&lt;P&gt;It is as simple as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;described.&amp;nbsp; However, you will need to get N (not NMISS) to count nonmissing values.&amp;nbsp; A simple report:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=have n;&lt;/P&gt;
&lt;P&gt;var _numeric_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting an output data set instead of a report&amp;nbsp;is just slightly different:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=have noprint;&lt;/P&gt;
&lt;P&gt;var _numeric_;&lt;/P&gt;
&lt;P&gt;output out=want (drop=_type_ _freq_) n=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the shape of that data set might need to be adjusted (depends on how you intend to use it).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 17:37:36 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-11-09T17:37:36Z</dc:date>
    <item>
      <title>How to create a table to count non missing values for hundreds of columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412042#M100741</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a table to count the number of non missing values for hundred of columns. My data looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;col1 col2 col3 col4 ... col888&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; ...&amp;nbsp; &amp;nbsp; 23&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;56&amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; ...&amp;nbsp; 44&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; ...&amp;nbsp; 23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp;...&amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The table I would like to have is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;col1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;col2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;col3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;col4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;col888&amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate any help and advice.&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 17:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412042#M100741</guid>
      <dc:creator>huhuhu</dc:creator>
      <dc:date>2017-11-09T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table to count non missing values for hundreds of columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412044#M100742</link>
      <description>&lt;P&gt;Run a PROC MEANS with the NMISS output if they're all numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need an example, see example 2 and 10 in the PROC MEANS documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have issues post your code and log.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 17:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412044#M100742</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-09T17:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table to count non missing values for hundreds of columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412048#M100744</link>
      <description>&lt;P&gt;It is as simple as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;described.&amp;nbsp; However, you will need to get N (not NMISS) to count nonmissing values.&amp;nbsp; A simple report:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=have n;&lt;/P&gt;
&lt;P&gt;var _numeric_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting an output data set instead of a report&amp;nbsp;is just slightly different:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=have noprint;&lt;/P&gt;
&lt;P&gt;var _numeric_;&lt;/P&gt;
&lt;P&gt;output out=want (drop=_type_ _freq_) n=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the shape of that data set might need to be adjusted (depends on how you intend to use it).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 17:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412048#M100744</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-09T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table to count non missing values for hundreds of columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412063#M100754</link>
      <description>Thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2017 18:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412063#M100754</guid>
      <dc:creator>huhuhu</dc:creator>
      <dc:date>2017-11-09T18:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table to count non missing values for hundreds of columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412064#M100755</link>
      <description>Thank you a lot!</description>
      <pubDate>Thu, 09 Nov 2017 18:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-table-to-count-non-missing-values-for-hundreds/m-p/412064#M100755</guid>
      <dc:creator>huhuhu</dc:creator>
      <dc:date>2017-11-09T18:22:29Z</dc:date>
    </item>
  </channel>
</rss>

