<?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 copying output in Log window to an external file? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263522#M7252</link>
    <description>&lt;P&gt;Add in, before the code which's output is to be redirected, this code:&lt;/P&gt;
&lt;PRE&gt;proc printto log="&amp;lt;path to file&amp;gt;&amp;lt;filename&amp;gt;.txt";
run;&lt;/PRE&gt;
&lt;P&gt;And then to set it back to the normal log:&lt;/P&gt;
&lt;PRE&gt;proc printto;
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Apr 2016 14:22:01 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-04-13T14:22:01Z</dc:date>
    <item>
      <title>How to copying output in Log window to an external file?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263518#M7251</link>
      <description>&lt;P&gt;Hi, all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to copy the output from LOG window to a text file with defined location.&amp;nbsp; I wrote the code below, it didn't work.&amp;nbsp; Why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="2"&gt;SAS&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;/altlog=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"C:\Documment\SAS file\SAS log.txt"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263518#M7251</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2016-04-13T14:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to copying output in Log window to an external file?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263522#M7252</link>
      <description>&lt;P&gt;Add in, before the code which's output is to be redirected, this code:&lt;/P&gt;
&lt;PRE&gt;proc printto log="&amp;lt;path to file&amp;gt;&amp;lt;filename&amp;gt;.txt";
run;&lt;/PRE&gt;
&lt;P&gt;And then to set it back to the normal log:&lt;/P&gt;
&lt;PRE&gt;proc printto;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263522#M7252</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-13T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to copying output in Log window to an external file?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263528#M7253</link>
      <description>&lt;P&gt;The purpose is to&amp;nbsp;COPY a LOG&amp;nbsp;to a&amp;nbsp;text file, not send all of LOG to a text file.&amp;nbsp; It's different.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263528#M7253</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2016-04-13T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to copying output in Log window to an external file?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263531#M7254</link>
      <description>&lt;P&gt;Then highlight the text you want in the log window, press cntl+c, open notepad and press cntrl+p. &amp;nbsp;Or right click on the log window, do Save As, point it to where you would like and save.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, could you clarify what the difference is?&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;The purpose is to&amp;nbsp;COPY a LOG&amp;nbsp;to a&amp;nbsp;text file, not send all of LOG to a text file.&amp;nbsp; It's different."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the first instance the log is sent to the log window, you then copy it to a file, in the second it is sent straight to a file. &amp;nbsp;No difference at all other then the interveening step.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263531#M7254</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-13T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to copying output in Log window to an external file?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263535#M7255</link>
      <description>&lt;P&gt;ALTLOG does not use a slash, it uses a dash.&amp;nbsp; I think this would be the correct usage:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="Courier New" size="2"&gt;SAS prog1 -&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;altlog &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;C:\Documment\log.txt&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;Note that this is not a SAS program.&amp;nbsp; It is a command that runs the SAS program named prog1.sas, and saves a copy of the log in a totally different folder.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-copying-output-in-Log-window-to-an-external-file/m-p/263535#M7255</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-13T14:39:37Z</dc:date>
    </item>
  </channel>
</rss>

