<?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: Cannot view log in sas EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448099#M112679</link>
    <description>&lt;P&gt;You could write the file to the log afterwards, e.g.:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename mylog "C:\Reports\LK55_&amp;amp;sysdate..txt";

Proc printto log=mylog new;
run; 

/* your code here */

Proc printto;run;

data _null_;
  infile mylog;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 Mar 2018 11:50:10 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2018-03-23T11:50:10Z</dc:date>
    <item>
      <title>Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448070#M112666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been using the below query to save my sas logs. However, while I run the code, I can not view the live log. Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc printto log="C:\Reports\LK55_&amp;amp;sysdate..txt" New;&lt;BR /&gt;run; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;option obs=max;&lt;BR /&gt;proc import datafile= "//&amp;lt;&amp;lt;path&amp;gt;&amp;gt;/LK.xlsx"&lt;BR /&gt;out=LK&lt;BR /&gt;dbms=xlsx replace;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also used &lt;U&gt;Proc printo;run;&lt;/U&gt; before import query, this is giving the live log but the saved logs is having NIL data in this case.Is there any way to actually get both the logs..?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448070#M112666</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-03-23T07:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448073#M112669</link>
      <description>&lt;P&gt;Since you are redirecting the whole log, it's not sent to EG anymore. To have a complete log written to disk, and still display in EG, you need to work with the logconfig.xml of the workspace server.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448073#M112669</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-23T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448082#M112674</link>
      <description>&lt;P&gt;If you can't edit logconfig.xml of the workspace server, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; suggested, you could add a step in EG to export the Log&lt;/P&gt;
&lt;P&gt;automatically. &lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="eg_export_log.png" style="width: 374px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19404i9E5B51A03071F38A/image-size/large?v=v2&amp;amp;px=999" role="button" title="eg_export_log.png" alt="eg_export_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 08:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448082#M112674</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-03-23T08:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448099#M112679</link>
      <description>&lt;P&gt;You could write the file to the log afterwards, e.g.:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Filename mylog "C:\Reports\LK55_&amp;amp;sysdate..txt";

Proc printto log=mylog new;
run; 

/* your code here */

Proc printto;run;

data _null_;
  infile mylog;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448099#M112679</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-03-23T11:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448381#M112775</link>
      <description>&lt;P&gt;If you run your programs in batch mode then no re-direction of logs is required AND you can monitor live logs as well. Using SAS Management Console and the batch program scheduler is the best option for this assuming to use a remote SAS server.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 02:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448381#M112775</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-03-24T02:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot view log in sas EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448907#M112921</link>
      <description>&lt;P&gt;Works like charm, Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 09:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Cannot-view-log-in-sas-EG/m-p/448907#M112921</guid>
      <dc:creator>don21</dc:creator>
      <dc:date>2018-03-27T09:02:37Z</dc:date>
    </item>
  </channel>
</rss>

