<?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: Copy sas log in a text file, but keeping them also into sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680468#M205659</link>
    <description>ALTLOG must be changed on invocation, would that work for you?&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/td-p/171808" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/td-p/171808&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 31 Aug 2020 16:00:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-08-31T16:00:36Z</dc:date>
    <item>
      <title>Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680451#M205649</link>
      <description>&lt;P&gt;Good Morning,&lt;BR /&gt;&lt;BR /&gt;I'm looking almost all day how to copy sas log into a text file, but without erasing it into sas (no proc printto, or maybe if some option exists…)&lt;BR /&gt;&lt;BR /&gt;I need this code to be inside my sas program and not executed into linuy command line (or of course in a linux command line into my sas program)&lt;BR /&gt;&lt;BR /&gt;I would like to be in my sas enterprise guide session, run my project (or program) and then see the logs into sas, but also save them (automatically) in a text file.&lt;BR /&gt;&lt;BR /&gt;I saw on internet the altlog option, but I didn't manage to make it work...&lt;BR /&gt;&lt;BR /&gt;Hope somebody could help me.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Sabrina&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680451#M205649</guid>
      <dc:creator>Sabrina3</dc:creator>
      <dc:date>2020-08-31T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680468#M205659</link>
      <description>ALTLOG must be changed on invocation, would that work for you?&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/td-p/171808" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Implement-altlog-in-the-code/td-p/171808&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2020 16:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680468#M205659</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-31T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680470#M205660</link>
      <description>&lt;P&gt;Code Direct Log to the External Log file , Reads and displays the external file and displays it in the Log Window in the same session. Let me know if this works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Specify the path for the external log */

*Specify the Path;
%let path=&amp;lt;Your_Path&amp;gt;/sample.log;
 
* Export Log to Extrenal Path;
proc printto log="&amp;amp;path.";
run;
 
*Specify Your SAS Code Here;
data Sample;
   set sashelp.class;
run;
 
proc print data=Sample;
run;
 
proc printto log=log; run;
 
*Read the Log from the External file and Display in the Log Window;
data _null_;
   infile "&amp;amp;path.";
   input;
   putlog "&amp;gt;" _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Aug 2020 16:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680470#M205660</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-08-31T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680684#M205763</link>
      <description>&lt;P&gt;Thank you r_behata,&lt;BR /&gt;&lt;BR /&gt;It's a good idea, but doing like this we lose the fonctionality of seen the errors and warning in the bottom bar.&lt;BR /&gt;See the picture below&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48835i104B51775DB13ACA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Sep 2020 13:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680684#M205763</guid>
      <dc:creator>Sabrina3</dc:creator>
      <dc:date>2020-09-01T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680688#M205767</link>
      <description>Thank you Reeza for your help…&lt;BR /&gt;I cannot manage to make the altlog work… If I understood it correctly, sas must be triggered in batch right ?&lt;BR /&gt;&lt;BR /&gt;I'm looking for a solution that can be written in the sas script.</description>
      <pubDate>Tue, 01 Sep 2020 13:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680688#M205767</guid>
      <dc:creator>Sabrina3</dc:creator>
      <dc:date>2020-09-01T13:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680693#M205768</link>
      <description>If I remove the "&amp;gt;" and just write the last line :&lt;BR /&gt;putlog _infile_;&lt;BR /&gt;&lt;BR /&gt;it works !</description>
      <pubDate>Tue, 01 Sep 2020 13:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680693#M205768</guid>
      <dc:creator>Sabrina3</dc:creator>
      <dc:date>2020-09-01T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy sas log in a text file, but keeping them also into sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680724#M205791</link>
      <description>It would be sooo nice if altlog could be specified in SAS code rather than only during SAS session start-up.  Feel free to up-vote my ballot suggestion for this feature:  &lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Allow-ALTLOG-to-be-specified-on-OPTIONS-statement/idi-p/219628" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/Allow-ALTLOG-to-be-specified-on-OPTIONS-statement/idi-p/219628&lt;/A&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-sas-log-in-a-text-file-but-keeping-them-also-into-sas/m-p/680724#M205791</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2020-09-01T15:31:40Z</dc:date>
    </item>
  </channel>
</rss>

