<?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: Suppress result table of proc means, keeping the output for futher use in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595439#M171298</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;

&amp;lt;proc means code&amp;gt;;


ods select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ODS SELECT/EXCLUDE can be used to suppress the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 15:07:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-10T15:07:02Z</dc:date>
    <item>
      <title>Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595429#M171289</link>
      <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc means data=have MEAN T;
ods output summary=summary1;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Later on I use the result: summary1 as an input in another function.&lt;/P&gt;&lt;P&gt;But at the same time I don't want the result table of the proc means operation itself be presented in my output file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use noprint along with the proc means, then SAS doesn't see my summary1 anymore and I can not work with it later on.&lt;/P&gt;&lt;P&gt;What would be you kind advice?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595429#M171289</guid>
      <dc:creator>Astana</dc:creator>
      <dc:date>2019-10-10T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595433#M171292</link>
      <description>&lt;P&gt;Use PROC SUMMARY instead of PROC MEANS&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 14:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595433#M171292</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-10T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595439#M171298</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;

&amp;lt;proc means code&amp;gt;;


ods select all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;ODS SELECT/EXCLUDE can be used to suppress the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:07:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595439#M171298</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-10T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595441#M171300</link>
      <description>&lt;P&gt;ODS OUTPUT reformats tables sent to the ODS processor into data sets (crude summary). If you do not create any output to and ODS destination then ODS Output has nothing to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Proc Means you could use the basic output statement which would require listing the statistics requested on the OUTPUT statement and something to rename the output variables such as the Autoname option. But the variables will likely have different names than were created by the ODS OUTPUT and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=have MEAN T noprint;
   output out=summary1 mean= t= /autoname;
run;&lt;/PRE&gt;
&lt;P&gt;though I prefer to use Proc Summary as the output data sets have different structures with defaults.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595441#M171300</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-10T15:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595444#M171301</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;the STACKODS option in PROC MEANS gets you pretty close to the ODS OUTPUT option with OUT statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ODS OUTPUT reformats tables sent to the ODS processor into data sets (crude summary). If you do not create any output to and ODS destination then ODS Output has nothing to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Proc Means you could use the basic output statement which would require listing the statistics requested on the OUTPUT statement and something to rename the output variables such as the Autoname option. But the variables will likely have different names than were created by the ODS OUTPUT and&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=have MEAN T noprint;
   output out=summary1 mean= t= /autoname;
run;&lt;/PRE&gt;
&lt;P&gt;though I prefer to use Proc Summary as the output data sets have different structures with defaults.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 15:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595444#M171301</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-10T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595507#M171332</link>
      <description>&lt;P&gt;If I use this option SAS still tells me that summary2 doesn't exist with an Error message. And Procedure Means is still printed.&lt;/P&gt;&lt;PRE&gt;ods select none;
        proc means data=have MEAN T ;
        ods output summary=summary2;

ods select all;
    

NOTE: There were 234 observations read from the data set 
NOTE: The PROCEDURE MEANS printed page 1.
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.02 seconds
      cpu time            0.02 seconds
      

       data want;
        set summary2;
ERROR: File WORK.SUMMARY2.DATA does not exist.&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595507#M171332</guid>
      <dc:creator>Astana</dc:creator>
      <dc:date>2019-10-10T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress result table of proc means, keeping the output for futher use</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595512#M171334</link>
      <description>&lt;P&gt;I would make sure to place the global statements outside of the proc statements.&lt;/P&gt;
&lt;P&gt;Works for me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output summary=summary2;
proc means data=sashelp.class MEAN T ;
 var height weight;
run;
ods select all;
proc print data=summary2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-result-table-of-proc-means-keeping-the-output-for/m-p/595512#M171334</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-10T17:31:33Z</dc:date>
    </item>
  </channel>
</rss>

