<?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: Display log only when there are errors in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Display-log-only-when-there-are-errors/m-p/370140#M275629</link>
    <description>&lt;P&gt;What does your command to print look like so far?&lt;/P&gt;
&lt;P&gt;Is it executing a macro? If so what is the code for the macro.&lt;/P&gt;
&lt;P&gt;Do mean "switch to the Log window" if there are errors or are you attempting not to have anything in the log for the print if there are no errors.&lt;/P&gt;
&lt;P&gt;And what type of errors are you concerned with?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jun 2017 19:53:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-23T19:53:46Z</dc:date>
    <item>
      <title>Display log only when there are errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-log-only-when-there-are-errors/m-p/369958#M275628</link>
      <description>&lt;P&gt;I'm trying to add a tool to the toolbar that will submit code (e.g. proc print), and then display the log &lt;U&gt;only&lt;/U&gt; if there are errors. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried various combinations of &amp;nbsp;"submit;" followed by "gsubmit" and codes/short macros will run " dm 'log;'; " if the &amp;amp;SYSERR variable outputs anything other than 0. &amp;nbsp;I think at least part of the problem is that the SYSERR is just referencing when the macro is defined and not the previously submitted code that I would like error checked, but I'm not sure how to make SAS execute code conditionally outside of a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-log-only-when-there-are-errors/m-p/369958#M275628</guid>
      <dc:creator>moreka</dc:creator>
      <dc:date>2017-06-23T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Display log only when there are errors</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-log-only-when-there-are-errors/m-p/370140#M275629</link>
      <description>&lt;P&gt;What does your command to print look like so far?&lt;/P&gt;
&lt;P&gt;Is it executing a macro? If so what is the code for the macro.&lt;/P&gt;
&lt;P&gt;Do mean "switch to the Log window" if there are errors or are you attempting not to have anything in the log for the print if there are no errors.&lt;/P&gt;
&lt;P&gt;And what type of errors are you concerned with?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-log-only-when-there-are-errors/m-p/370140#M275629</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-23T19:53:46Z</dc:date>
    </item>
  </channel>
</rss>

