<?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: Get Variables Missing Percentage By Using PROC TABULATE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331122#M74371</link>
    <description>&lt;P&gt;Any idea about this subject?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 10:50:32 GMT</pubDate>
    <dc:creator>ertr</dc:creator>
    <dc:date>2017-02-09T10:50:32Z</dc:date>
    <item>
      <title>Get Variables Missing Percentage By Using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/330957#M74329</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very large data set which includes many variables. I want to learn Missing percentage for every variables based on Column. The first thing coming to my mind is using the PROC TABULATE. I try to use the following code but this did not give my desired output. I prepared a sample code and desired image as below. Can somebody help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additively, I have hundreds variables in my data set. Is it possible to write macro code to get whole variables's Missing percentage more easier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Have;
Length Variable1 8 Variable2 8 Variable3 8 Variable4 8 Variable5 8 Variable6 8 Variable7 8 Variable8 8;
Infile Datalines Missover;
Input Variable1 Variable2 Variable3 Variable4 Variable5 Variable6 Variable7 Variable8;
Datalines;
1 2 3 4 5 6 7 8
. 2 3 4 5 6 7 8
. . 3 4 5 6 7 8
. . . 4 5 6 7 8
. . . . 5 6 7 8
. . . . . 6 7 8
. . . . . . 7 8
. . . . . . . 8
. . . . . . . .
;
Run;

PROC TABULATE DATA=HAVE;
	VAR Variable1 Variable2 Variable3 Variable4 Variable5 Variable6 Variable7 Variable8;
	TABLE /* Column Dimension */
Variable1*(N NMiss) 
Variable2*(N NMiss) 
Variable3*(N NMiss) 
Variable4*(N NMiss) 
Variable5*(N NMiss) 
Variable6*(N NMiss) 
Variable7*(N NMiss) 
Variable8*(N NMiss)
;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7138i7D565C4573BC1F10/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Desired.png" title="Desired.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/330957#M74329</guid>
      <dc:creator>ertr</dc:creator>
      <dc:date>2017-02-08T19:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get Variables Missing Percentage By Using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331122#M74371</link>
      <description>&lt;P&gt;Any idea about this subject?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331122#M74371</guid>
      <dc:creator>ertr</dc:creator>
      <dc:date>2017-02-09T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get Variables Missing Percentage By Using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331250#M74421</link>
      <description>&lt;P&gt;Proc tabulate will not use the result of one statistic to calculate another. Either a couple passes through the data, proc summary to get the n and nmiss and then a data step for the percent or possibly proc report which will allow you to use results of statistics to calculate using the column results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331250#M74421</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-09T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Variables Missing Percentage By Using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331258#M74426</link>
      <description>Or, you could do this in PROC REPORT. The code would be a bit verbose, but very do-able. It really depends on what you already know and whether you have the time to learn PROC REPORT if you don't already know it.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 09 Feb 2017 17:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Variables-Missing-Percentage-By-Using-PROC-TABULATE/m-p/331258#M74426</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-02-09T17:47:54Z</dc:date>
    </item>
  </channel>
</rss>

