<?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 how to export  sas log using sas code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879715#M347540</link>
    <description>&lt;P&gt;Hi I would like to know how to export sas program log to a folder using sas code in a sas program&lt;/P&gt;
&lt;P&gt;right now I have to manually export it and I would like to use sas code to have it automatically saved in a specific folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help thx&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 09:51:20 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2023-06-08T09:51:20Z</dc:date>
    <item>
      <title>how to export  sas log using sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879715#M347540</link>
      <description>&lt;P&gt;Hi I would like to know how to export sas program log to a folder using sas code in a sas program&lt;/P&gt;
&lt;P&gt;right now I have to manually export it and I would like to use sas code to have it automatically saved in a specific folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help thx&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879715#M347540</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-06-08T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to export  sas log using sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879719#M347541</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="g:\abc\def\myfolder\filename.log" new;
run;

/* YOUR CODE GOES HERE */

proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: the option NEW overwrites any previous logs by this name.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 09:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879719#M347541</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-08T09:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to export  sas log using sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879748#M347555</link>
      <description>If you are using PC version of SAS , you could try this:&lt;BR /&gt;&lt;BR /&gt;option mprint mlogic symbolgen;&lt;BR /&gt;/*...................Here is code..........................*/&lt;BR /&gt;dm 'log; file "c:\temp\ReportPrint.log" replace;' ;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jun 2023 12:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879748#M347555</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-06-08T12:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to export  sas log using sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879863#M347586</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;please mark an answer correct, if the answer works for you.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 12:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879863#M347586</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-09T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to export  sas log using sas code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879878#M347595</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="g:\abc\def\myfolder\filename %sysfunc(today(), yymmddn10.).log" new;
run;

/* YOUR CODE GOES HERE */

proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also add the date (or datetime via datetime()) if you're looking to have this tracked each time you run a process.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 15:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-export-sas-log-using-sas-code/m-p/879878#M347595</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-09T15:19:39Z</dc:date>
    </item>
  </channel>
</rss>

