<?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: Control suppression of ODS output in SAS Enterprise Guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473817#M121624</link>
    <description>&lt;P&gt;I haven't tested PROC GLIMIX but I&amp;nbsp;use select none and ODS OUTPUT&amp;nbsp;all the time with PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;                                                                               
proc means data=&amp;amp;_m._sl n mean std median min max completetypes stackodsoutput;                
   class &amp;amp;trt / order=data preloadfmt mlf missing;                                             
   var &amp;amp;continuous;                                                                            
   ods output summary=&amp;amp;_m._cvars(rename=(variable=_variable_) index=(cvars=(_variable_ &amp;amp;trt)));
   run;                                                                                        
ods select all;                                                                                
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Jun 2018 17:15:39 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2018-06-27T17:15:39Z</dc:date>
    <item>
      <title>Control suppression of ODS output in SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473806#M121620</link>
      <description>&lt;P&gt;I am using SAS Enterprise Guide to run simulations with PROC GLIMMIX.&amp;nbsp; I don't want the results for the thousands of runs to show up in the default SASReport destination and I need to write the random solution to a SAS dataset.&amp;nbsp; No problem, this code does the trick:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods results OFF;
proc glimmix; by simulationN; model y = x; random r / s; ods output SolutionR=SRout; run;
ods results ON;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, if I add any code outside of of the RESULTS ON/OFF block, the effects of ODS RESULTS OFF is negated.&amp;nbsp; For example, if I want to obtain the mean of random estimates and use PROC SQL to calculate that, the results of all 1,000 simulations will be pushed to ODS SASReport which takes a while to write.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods results OFF;
proc glimmix; by simulationN; model y = x; random r / s; ods output SolutionR=SRout; run;
ods results ON;&lt;BR /&gt;   &lt;BR /&gt;&lt;/CODE&gt; proc sql; select mean(Estimate) from SRout; quit;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;Is this a normal SEG behavior or am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot use ODS SELECT NONE / EXCLUDE ALL or NOPRINT option because that suppresses the writing of the SolutionR to SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The work-around I use is to use ODS _ALL_ CLOSE before PROC GLIMMIX and then re-enable ODS TagSet.SASReport File=EGSR afterwards.&amp;nbsp; But I would like to understand this strange behavior of ODS RESULTS commands?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473806#M121620</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-06-27T16:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Control suppression of ODS output in SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473817#M121624</link>
      <description>&lt;P&gt;I haven't tested PROC GLIMIX but I&amp;nbsp;use select none and ODS OUTPUT&amp;nbsp;all the time with PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;                                                                               
proc means data=&amp;amp;_m._sl n mean std median min max completetypes stackodsoutput;                
   class &amp;amp;trt / order=data preloadfmt mlf missing;                                             
   var &amp;amp;continuous;                                                                            
   ods output summary=&amp;amp;_m._cvars(rename=(variable=_variable_) index=(cvars=(_variable_ &amp;amp;trt)));
   run;                                                                                        
ods select all;                                                                                
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 17:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473817#M121624</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-06-27T17:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Control suppression of ODS output in SAS Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473818#M121625</link>
      <description>&lt;P&gt;Thanks for setting me on the right path.&amp;nbsp; Curiously, the location of ODS SELECT NONE matters.&amp;nbsp; The code I used does not write SRout dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix; 
 by simulationN; 
 model y = x; 
 random r / s; 
 ods output SolutionR=SRout; 
 ods select none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if I switch the two ODS lines, the output is produced just like you suggested:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix; 
	by simulationN; 
	model y = x; 
	random r / s; 
	ods select none;
	ods output SolutionR=SRout; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, why is ODS RESULTS OFF/ON block negated by the PROC SQL that follows it?????&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Control-suppression-of-ODS-output-in-SAS-Enterprise-Guide/m-p/473818#M121625</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-06-27T16:38:14Z</dc:date>
    </item>
  </channel>
</rss>

