<?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 do I get rid of level 0 stats in proc means output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-rid-of-level-0-stats-in-proc-means-output/m-p/876918#M346418</link>
    <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc means data=repeats mean max mode &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;nway&lt;/FONT&gt;&lt;/STRONG&gt;; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you don't need WHERE= in the output statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative: use the statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ways 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in your PROC MEANS and again you don't need the WHERE=&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 15:35:45 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-05-22T15:35:45Z</dc:date>
    <item>
      <title>How do I get rid of level 0 stats in proc means output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-rid-of-level-0-stats-in-proc-means-output/m-p/876917#M346417</link>
      <description>&lt;P&gt;This should be a simple question, but the documentation is eluding me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I drop the _TYPE_ column in the output data set?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc means data=repeats mean max mode;
var count;
class serial_number;
output out=stats( rename=(_freq_=HW_events) where=(_type_=1) drop=_TYPE_) mean=Ave_repeats mode=Mode_repeats max=Max_repeats;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get an error&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;ERROR: Variable _type_ is not on file WORK.STATS.&lt;/PRE&gt;&lt;P&gt;If I remove the other options, _TYPE_ drops.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-rid-of-level-0-stats-in-proc-means-output/m-p/876917#M346417</guid>
      <dc:creator>eh51</dc:creator>
      <dc:date>2023-05-22T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get rid of level 0 stats in proc means output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-rid-of-level-0-stats-in-proc-means-output/m-p/876918#M346418</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc means data=repeats mean max mode &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;nway&lt;/FONT&gt;&lt;/STRONG&gt;; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you don't need WHERE= in the output statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative: use the statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ways 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in your PROC MEANS and again you don't need the WHERE=&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-get-rid-of-level-0-stats-in-proc-means-output/m-p/876918#M346418</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-22T15:35:45Z</dc:date>
    </item>
  </channel>
</rss>

