<?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: Can you use drop/keep options in PROC MEANS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848876#M335618</link>
    <description>&lt;P&gt;Yes, you can use the DROP and KEEP options in PROC MEANS in SAS. Here is an example of how you can use them:&lt;/P&gt;&lt;P&gt;proc means data=mydata noprint;&lt;BR /&gt;var x y z;&lt;BR /&gt;drop xmean ymean zmean;&lt;BR /&gt;keep xstd ystd zstd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Dec 2022 11:46:00 GMT</pubDate>
    <dc:creator>ger15xxhcker</dc:creator>
    <dc:date>2022-12-10T11:46:00Z</dc:date>
    <item>
      <title>Can you use drop/keep options in PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848864#M335606</link>
      <description>&lt;P&gt;Is it possible? Cant seem to get it to work.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 08:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848864#M335606</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-12-10T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use drop/keep options in PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848870#M335612</link>
      <description>&lt;P&gt;You can use Drop / Keep &lt;EM&gt;Data Set Options&lt;/EM&gt; all you want in the input / output data set. Hard to tell what is wrong without seeing your code, but I suspect you attempt to use Drop / Keep &lt;EM&gt;Statements&lt;/EM&gt;. Which are not supported.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 11:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848870#M335612</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-12-10T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use drop/keep options in PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848876#M335618</link>
      <description>&lt;P&gt;Yes, you can use the DROP and KEEP options in PROC MEANS in SAS. Here is an example of how you can use them:&lt;/P&gt;&lt;P&gt;proc means data=mydata noprint;&lt;BR /&gt;var x y z;&lt;BR /&gt;drop xmean ymean zmean;&lt;BR /&gt;keep xstd ystd zstd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 11:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848876#M335618</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-10T11:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use drop/keep options in PROC MEANS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848881#M335623</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/192091"&gt;@ger15xxhcker&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, you can use the DROP and KEEP options in PROC MEANS in SAS. Here is an example of how you can use them:&lt;/P&gt;
&lt;P&gt;proc means data=mydata noprint;&lt;BR /&gt;var x y z;&lt;BR /&gt;drop xmean ymean zmean;&lt;BR /&gt;keep xstd ystd zstd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;These are DROP or KEEP &lt;FONT color="#FF0000"&gt;statements&lt;/FONT&gt;, not DROP or KEEP &lt;FONT color="#FF0000"&gt;options&lt;/FONT&gt;. You cannot use DROP or KEEP &lt;FONT color="#FF0000"&gt;statements&lt;/FONT&gt; in PROC MEANS. If I use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class;
var height weight age;
drop age;
keep height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then the log says you can't use the DROP &lt;FONT color="#FF0000"&gt;statements&lt;/FONT&gt; or KEEP &lt;FONT color="#FF0000"&gt;statements&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 69         proc means data=sashelp.class;
 70         var height weight age;
 71         drop age;
 NOTE: The DROP and KEEP statements are not supported in procedure steps in this release of the SAS System. Therefore, these 
       statements are ignored.
 72         keep height;
 NOTE: The DROP and KEEP statements are not supported in procedure steps in this release of the SAS System. Therefore, these 
       statements are ignored.
 73         run;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;What you can do is use the DROP or KEEP &lt;FONT color="#FF0000"&gt;options&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=sashelp.class(drop=height);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 12:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-use-drop-keep-options-in-PROC-MEANS/m-p/848881#M335623</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-10T12:41:44Z</dc:date>
    </item>
  </channel>
</rss>

