<?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: Redirecting SAS log and output files using PROC PRINTTO in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225411#M53928</link>
    <description>&lt;P&gt;Hi, this works for me ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc printto log='z:\log.txt' print='z:\print.txt';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc means data=sashelp.class noprint;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc printto;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's nothing in the output window, here's the LOG ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;390 proc printto log='z:\log.txt' print='z:\print.txt';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;391 run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;real time 0.00 seconds&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;cpu time 0.00 seconds&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 17:36:30 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2015-09-14T17:36:30Z</dc:date>
    <item>
      <title>Redirecting SAS log and output files using PROC PRINTTO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225408#M53927</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am running v9.3 TSIM1 and would like to redirect my SAS log and output to an external file using Proc Printto WITHOUT the output being automatically written to the "Results" log in PC SAS.&amp;nbsp;The output being automatically directed to the "Results" log is large and slows down the performance of the SAS program dramatically.&amp;nbsp;The reason&amp;nbsp;for this&amp;nbsp;is that I am running a SAS/STAT procedure using a "by" statement and this is useless output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is the syntax I am using for the Proc Printto:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;proc printto new log='c:\data\logfilex.txt' &amp;nbsp; &amp;nbsp;file='c:\data\logfilex.txt';&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The SAS log output is being successfully written out to the external file. In addition, SAS documentation recommends putting the log= and file= (or print=) options in the same Proc Printto statement. Note two things about this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Using two Proc Printtos -- one for the log= and a second for the file= -- has no effect on the "Results" log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Using an "ODS Listing Close;" options statement also has no effect on output written to the "Results" log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225408#M53927</guid>
      <dc:creator>xtc283x</dc:creator>
      <dc:date>2015-09-14T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SAS log and output files using PROC PRINTTO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225411#M53928</link>
      <description>&lt;P&gt;Hi, this works for me ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc printto log='z:\log.txt' print='z:\print.txt';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc means data=sashelp.class noprint;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc printto;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's nothing in the output window, here's the LOG ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;390 proc printto log='z:\log.txt' print='z:\print.txt';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;391 run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;real time 0.00 seconds&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;cpu time 0.00 seconds&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225411#M53928</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2015-09-14T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SAS log and output files using PROC PRINTTO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225431#M53930</link>
      <description>What in the proc is generating the large amount of output? Perhaps it can be suppressed in the proc?</description>
      <pubDate>Mon, 14 Sep 2015 19:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225431#M53930</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-14T19:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SAS log and output files using PROC PRINTTO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225436#M53932</link>
      <description>&lt;P&gt;Results output is the ODS HTML destination. You can close and open that destination as needed to avoid output.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 19:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225436#M53932</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-14T19:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting SAS log and output files using PROC PRINTTO</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225449#M53933</link>
      <description>*Close all results;&lt;BR /&gt;ODS _all_ close;&lt;BR /&gt;&lt;BR /&gt;code;&lt;BR /&gt;&lt;BR /&gt;*reopen results;&lt;BR /&gt;ODS Listing;&lt;BR /&gt;ODS HTML;</description>
      <pubDate>Mon, 14 Sep 2015 20:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Redirecting-SAS-log-and-output-files-using-PROC-PRINTTO/m-p/225449#M53933</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-14T20:11:12Z</dc:date>
    </item>
  </channel>
</rss>

