<?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 to stop printing results in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821160#M324193</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372747"&gt;@Toni2&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/odsproc/p1b72ff70v3obrn16aanp1r9q2bu.htm" target="_blank" rel="noopener"&gt;ODS SELECT statement&lt;/A&gt;&amp;nbsp;(or similarly the ODS EXCLUDE statement) to restrict the output to the dataset requested in the ODS OUTPUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;ods select none;&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;proc logistic ...
...&lt;/FONT&gt;
&lt;STRONG&gt;ods output ...;&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;...
run;&lt;/FONT&gt;
&lt;STRONG&gt;ods select all;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;The ODS OUTPUT statement can also precede the PROC LOGISTIC statement, but must be inside the pair of ODS SELECT statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(The period after "&lt;FONT face="courier new,courier"&gt;r2&lt;/FONT&gt;" is incorrect, btw.)&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 15:09:43 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-06-30T15:09:43Z</dc:date>
    <item>
      <title>How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821154#M324188</link>
      <description>&lt;P&gt;hi, the below code prints the results even thought i have places ods close statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mean it print in HTML which i don't want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please anyone advise how to stop printing ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*R_squared*/
ods html close;
proc logistic data=data1.;
ods Output rsquare=r2.;
model bad=good/rsquare;
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jun 2022 14:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821154#M324188</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-06-30T14:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821157#M324190</link>
      <description>&lt;P&gt;Which ODS destination is open? To use ODS OUTPUT you must have at least one ODS Destination open or no output will be created.&lt;/P&gt;
&lt;P&gt;Or for some procedures you may be able to get what you want with an output statement but that may not have all the bits that you want.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 15:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821157#M324190</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-30T15:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821160#M324193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372747"&gt;@Toni2&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/odsproc/p1b72ff70v3obrn16aanp1r9q2bu.htm" target="_blank" rel="noopener"&gt;ODS SELECT statement&lt;/A&gt;&amp;nbsp;(or similarly the ODS EXCLUDE statement) to restrict the output to the dataset requested in the ODS OUTPUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;ods select none;&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;proc logistic ...
...&lt;/FONT&gt;
&lt;STRONG&gt;ods output ...;&lt;/STRONG&gt;
&lt;FONT color="#999999"&gt;...
run;&lt;/FONT&gt;
&lt;STRONG&gt;ods select all;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;The ODS OUTPUT statement can also precede the PROC LOGISTIC statement, but must be inside the pair of ODS SELECT statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(The period after "&lt;FONT face="courier new,courier"&gt;r2&lt;/FONT&gt;" is incorrect, btw.)&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 15:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821160#M324193</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-06-30T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821161#M324194</link>
      <description>i am not sure which destination is open. My issue here is i want to run the code in loop and it is going to take ages to print results. i need them only in the output table. Is there any workaround?</description>
      <pubDate>Thu, 30 Jun 2022 15:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821161#M324194</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-06-30T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821163#M324195</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372747"&gt;@Toni2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;My issue here is i want to run the code in loop and it is going to take ages to print results.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If performance is an issue, you may even want to go a step further and also use ODS NORESULTS (and ODS GRAPHICS OFF if your procedure creates unwanted graphs): see Rick Wicklin's macros ODSOff and ODSOn in his blog article&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_blank" rel="noopener"&gt;Turn off ODS when running simulations in SAS&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 15:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821163#M324195</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-06-30T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop printing results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821167#M324196</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372747"&gt;@Toni2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;i am not sure which destination is open. My issue here is i want to run the code in loop and it is going to take ages to print results. i need them only in the output table. Is there any workaround?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to use the ODS SELECT option demo'd by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in case you missed it,&amp;nbsp; you'll need to pick a unique name for your output data set otherwise it will get overwritten each run.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 15:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-printing-results/m-p/821167#M324196</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-30T15:40:47Z</dc:date>
    </item>
  </channel>
</rss>

