<?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 Export SAS log to external files without vbs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331498#M74505</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to find a way to export the log everytime i run a program in EG, or Sas 9.3 Is there an easy way of doing this with a timestamp?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 13:36:35 GMT</pubDate>
    <dc:creator>Bellefeuille</dc:creator>
    <dc:date>2017-02-10T13:36:35Z</dc:date>
    <item>
      <title>Export SAS log to external files without vbs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331498#M74505</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to find a way to export the log everytime i run a program in EG, or Sas 9.3 Is there an easy way of doing this with a timestamp?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:36:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331498#M74505</guid>
      <dc:creator>Bellefeuille</dc:creator>
      <dc:date>2017-02-10T13:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS log to external files without vbs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331501#M74506</link>
      <description>&lt;P&gt;In your code, before you run anything, you can put:&lt;/P&gt;
&lt;P&gt;proc printto log="&amp;lt;path to log&amp;gt;\&amp;lt;name of log&amp;gt;_%sysfunc(date(),date9.)_%sysfunc(time(),tod5).txt";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will redirect the log output to the given file, and the %sysfunc's will give a date and time in the filename.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 13:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331501#M74506</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-10T13:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS log to external files without vbs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331508#M74510</link>
      <description>&lt;P&gt;By personal preference, I would use yymmddd10. or yymmddn8. as the format for the date value. This automatically sorts the logs in their chronological order.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-log-to-external-files-without-vbs/m-p/331508#M74510</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-10T14:01:14Z</dc:date>
    </item>
  </channel>
</rss>

