<?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: SAS Custom Warnings in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/448992#M29052</link>
    <description>Yes. I see that programming it would be tricky. But I see what you mean. You would just use a conditional %put statement . Thanks</description>
    <pubDate>Tue, 27 Mar 2018 14:40:46 GMT</pubDate>
    <dc:creator>TimWright</dc:creator>
    <dc:date>2018-03-27T14:40:46Z</dc:date>
    <item>
      <title>SAS Custom Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/447435#M28932</link>
      <description>&lt;P&gt;Is it&amp;nbsp; possible, in either SAS 9.4 or SAS enterprise, to create a custom warning?&amp;nbsp; For example, my friend and I were thinking out loud that it would be helpful having SAS give a warning when I do a RIGHT JOIN in proc SQL, because this is something that could have dreadful consequences if it was used incorrectly.&amp;nbsp; It could say "warning: You are doing a Right Join! "&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/447435#M28932</guid>
      <dc:creator>TimWright</dc:creator>
      <dc:date>2018-03-21T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Custom Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/447651#M28951</link>
      <description>&lt;P&gt;Yes, you can print custom warnings (or errors or notes)&amp;nbsp;to the SAS log via put statements in&amp;nbsp;SAS code. For example, if you submit this somewhere in your SAS code...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put WARNING: You are doing something I need to warn you about!;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...it will show up in the log and the log summary view, like so:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="customWarning.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19371i43104A1A0C557535/image-size/large?v=v2&amp;amp;px=999" role="button" title="customWarning.png" alt="customWarning.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Use "%put ERROR: error text;" or "%put NOTE: note text;" for custom errors or notes.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Granted, you'd have to be able to detect the scenario you wish to warn via code, so your code&amp;nbsp;knows when to conditionally print the warning. That might be difficult with the example you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 01:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/447651#M28951</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2018-03-22T01:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Custom Warnings</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/448992#M29052</link>
      <description>Yes. I see that programming it would be tricky. But I see what you mean. You would just use a conditional %put statement . Thanks</description>
      <pubDate>Tue, 27 Mar 2018 14:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Custom-Warnings/m-p/448992#M29052</guid>
      <dc:creator>TimWright</dc:creator>
      <dc:date>2018-03-27T14:40:46Z</dc:date>
    </item>
  </channel>
</rss>

