<?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: Outputing log into file and log window in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502659#M134216</link>
    <description>so how to use altlog ? can your write a syntax example ?</description>
    <pubDate>Tue, 09 Oct 2018 11:14:04 GMT</pubDate>
    <dc:creator>Jedrzej</dc:creator>
    <dc:date>2018-10-09T11:14:04Z</dc:date>
    <item>
      <title>Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502619#M134197</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a possibility that log can be outputed into txt file and also that it will be written into te sas log window ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've tried to copy witth altlog but without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc printto log='destination';run;&lt;BR /&gt;option altlog=log;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Oct 2018 08:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502619#M134197</guid>
      <dc:creator>Jedrzej</dc:creator>
      <dc:date>2018-10-09T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502624#M134199</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mylog 'YourPathHere\log.txt';

proc printto log=mylog;
run;

/* Some SAS Code */
data MyData;
   set sashelp.class;
run;

proc print data=MyData;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 08:49:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502624#M134199</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T08:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502625#M134200</link>
      <description>how do you resolve my problem with this ? you just print one data step.</description>
      <pubDate>Tue, 09 Oct 2018 08:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502625#M134200</guid>
      <dc:creator>Jedrzej</dc:creator>
      <dc:date>2018-10-09T08:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502626#M134201</link>
      <description>&lt;P&gt;Ah sorry, I missed the point here. I think the easiest is to use the &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n02cl0iq0k1fmxn11p83yirplodk.htm" target="_self"&gt;ALTLOG System Option&lt;/A&gt;&amp;nbsp;at startup in your Autoexec file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, here is a thread with alternative solutions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Outputting-log-to-two-locations/td-p/301336" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Outputting-log-to-two-locations/td-p/301336&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 08:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502626#M134201</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-09T08:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502646#M134210</link>
      <description>&lt;P&gt;Agree, ALTLOG must be specified at startup.&amp;nbsp; You can't use it in an options statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you think it would be useful to be able to specify ALTLOG in an options statement, please add your vote to this ballot idea I submitted a few years back:&amp;nbsp;&amp;nbsp;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 10:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502646#M134210</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-10-09T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502659#M134216</link>
      <description>so how to use altlog ? can your write a syntax example ?</description>
      <pubDate>Tue, 09 Oct 2018 11:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502659#M134216</guid>
      <dc:creator>Jedrzej</dc:creator>
      <dc:date>2018-10-09T11:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Outputing log into file and log window</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502661#M134217</link>
      <description>&lt;P&gt;Since altlog can only be turned on when SAS is invoked, it depends on how your are running SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have PC SAS, you can add -altlog "c:\mylog" to your SAS configuration file, which is a file like&amp;nbsp;C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg.&amp;nbsp; Or you can add -altlog "c:\mylog" to the icon you click to start a SAS session.&amp;nbsp; It's similar for other OS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The challenge is if you're using something like EG or SAS studio to connect to a SAS server, you would likely need to talk with your administrator, as they control configuration options that are applied when SAS starts.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 11:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputing-log-into-file-and-log-window/m-p/502661#M134217</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-10-09T11:30:42Z</dc:date>
    </item>
  </channel>
</rss>

