<?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: Read SAS log in current program in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619041#M181673</link>
    <description>&lt;P&gt;Your SAS log has to be written to a file stored on disk before it can be read by a SAS program. Whether you save it manually or use &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; 's suggestion to write it automatically using PROC PRINTO the end result is a file on disk.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 05:53:51 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-01-22T05:53:51Z</dc:date>
    <item>
      <title>Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619023#M181668</link>
      <description>&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;Hi All,&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on checking the logs in SAS v9.4. There are many papers about check for issues from external files saved as *.log. But I'd like to read the SAS log of current program, and can't find any relevant papers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the option or procedure to read the SAS log of my current program and check for the issues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zoe&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Jan 2020 03:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619023#M181668</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-01-22T03:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619035#M181671</link>
      <description>Use PROC PRINTTO to push the log, current log, to a file and then you can read the log in as any other file. &lt;BR /&gt;&lt;BR /&gt;Depending on what you're doing, PROC SCAPROC may be of use as well. You may also want to look into the automatic SAS macro variables that indicate different error types.</description>
      <pubDate>Wed, 22 Jan 2020 04:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619035#M181671</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-22T04:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619041#M181673</link>
      <description>&lt;P&gt;Your SAS log has to be written to a file stored on disk before it can be read by a SAS program. Whether you save it manually or use &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; 's suggestion to write it automatically using PROC PRINTO the end result is a file on disk.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 05:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619041#M181673</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-22T05:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619047#M181676</link>
      <description>&lt;P&gt;Thank you so much, Reeza.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried to use&amp;nbsp;&lt;SPAN&gt;PROC PRINTTO, but it seems this statement would store the current logs in a external file, and the LOG tab of SAS would display nothing. what I expected is to keep the log message in the LOG tab of SAS, and read and check the log message and output the log summary in the&amp;nbsp;LOG tab as well. For example, output the error and warning messages.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 06:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619047#M181676</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-01-22T06:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619053#M181680</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp; - An alternative to PROC PRINTTO is the ALTLOG system option which creates a copy of the log in a file in addition to keeping the original log: &lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=n02cl0iq0k1fmxn11p83yirplodk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=n02cl0iq0k1fmxn11p83yirplodk.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 06:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619053#M181680</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-22T06:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619064#M181686</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;. For example, output the error and warning messages.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But that is already done by EG in the log summary; you try to reinvent the wheel.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 08:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619064#M181686</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-22T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619083#M181693</link>
      <description>&lt;P&gt;Many thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just found another way to output the current SAS log using DM statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dm 'log; file ".\xx.log" replace';&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619083#M181693</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-01-22T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619088#M181697</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;, but I have to reinvent, since what we are using is not EG&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619088#M181697</guid>
      <dc:creator>Zoe_Steven</dc:creator>
      <dc:date>2020-01-22T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619089#M181698</link>
      <description>&lt;P&gt;Yep, just saw that you use the Display Manager. That is rather rare nowadays &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619089#M181698</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-22T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read SAS log in current program in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619271#M181776</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308295"&gt;@Zoe_Steven&lt;/a&gt;&amp;nbsp; - Great, I was aware of that one too, although that only works in the SAS Windowing Environment. It won't work if you use SAS Enterprise Guide as your user interface.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 18:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-SAS-log-in-current-program-in-SAS/m-p/619271#M181776</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-22T18:59:18Z</dc:date>
    </item>
  </channel>
</rss>

