<?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: Missing values table in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821112#M40620</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
run;



proc transpose data=have(obs=0) out=vname;
var _all_;
run;
proc sql noprint;
select cat('nmiss(',_name_,') as ',_name_) into :nmiss separated by ','
 from vname;

create table temp as
select &amp;amp;nmiss. from have;
quit;
proc transpose data=temp out=want(where=(col1&amp;gt;0));
var _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jun 2022 12:22:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-06-30T12:22:44Z</dc:date>
    <item>
      <title>Missing values table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821072#M40613</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have one big data set and i wanna to know which variables have at least one missing value .I know the two common ways (proc freq ,and where vr is missing).Ι wonder about if exist one order to print me all the variables names from my data set which have at least one missing value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 07:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821072#M40613</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-30T07:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821079#M40614</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/425371"&gt;@Barney1998&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_freq_syntax01.htm#procstat.freq.freqnlevels" target="_blank" rel="noopener"&gt;NLEVELS option&lt;/A&gt; of the PROC FREQ statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output nlevels=want(where=(nmisslevels));
proc freq data=have nlevels;
tables _all_;
run;
ods select all;

proc print data=want;
var tablevar;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If your dataset is really big (e.g. &amp;gt;10 GB), you may want to temporarily restrict the number of observations (or variables) by means of dataset options such as OBS= (or KEEP=), e.g., &lt;FONT face="courier new,courier"&gt;have&lt;STRONG&gt;(obs=1000000)&lt;/STRONG&gt;&lt;/FONT&gt;, and see how the run time develops when you increase the limit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821079#M40614</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-06-30T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821080#M40615</link>
      <description>&lt;P&gt;with the nlevels from proc sql i have that type of problem. Existed&amp;nbsp; columns which was empty but (i don't know why) the nmissing value from the output was equal to 0.&lt;/P&gt;&lt;P&gt;Thank you for your advice!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821080#M40615</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-30T08:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821081#M40616</link>
      <description>thanks so much for your solution! It's absolutely fine!&lt;BR /&gt;Have a nice day @FreelanceReinhard !&lt;BR /&gt;thanks a million!&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jun 2022 08:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821081#M40616</guid>
      <dc:creator>Barney1998</dc:creator>
      <dc:date>2022-06-30T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821112#M40620</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
run;



proc transpose data=have(obs=0) out=vname;
var _all_;
run;
proc sql noprint;
select cat('nmiss(',_name_,') as ',_name_) into :nmiss separated by ','
 from vname;

create table temp as
select &amp;amp;nmiss. from have;
quit;
proc transpose data=temp out=want(where=(col1&amp;gt;0));
var _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2022 12:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-values-table/m-p/821112#M40620</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-30T12:22:44Z</dc:date>
    </item>
  </channel>
</rss>

