<?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 Put the ERROR message to the log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831058#M328405</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it posible to put the ERROR message to the log and stop the execution of the program with the special condition (for exemple if my values=0).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help !&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 10:16:59 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2022-08-30T10:16:59Z</dc:date>
    <item>
      <title>Put the ERROR message to the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831058#M328405</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it posible to put the ERROR message to the log and stop the execution of the program with the special condition (for exemple if my values=0).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help !&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831058#M328405</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-08-30T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Put the ERROR message to the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831059#M328406</link>
      <description>Have a look at this: &lt;A href="https://documentation.sas.com/doc/en/engelref/2.8/p12s37oubobmmin1p82s4w69c820.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/engelref/2.8/p12s37oubobmmin1p82s4w69c820.htm&lt;/A&gt;</description>
      <pubDate>Tue, 30 Aug 2022 10:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831059#M328406</guid>
      <dc:creator>bigdataguy</dc:creator>
      <dc:date>2022-08-30T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Put the ERROR message to the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831074#M328414</link>
      <description>&lt;P&gt;Raiseerror() is part of the Dataflux datamanagement software. That may not be the proper context for this question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is datastep, do something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;...
if value=0 then do;
   putlog "ERROR: Something went wrong and value is 0."
   abort abend 4;
end;
...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will write a message to the log and terminate the program, returning a return code of 4 to the operating system. Other variants may apply. See &lt;A href="https://documentation.sas.com/doc/en/vdmmlcdc/8.1/lestmtsref/p0hp2evpgqvfsfn1u223hh9ubv3g.htm" target="_self"&gt;the SAS doc&lt;/A&gt; for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 12:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831074#M328414</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2022-08-30T12:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Put the ERROR message to the log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831115#M328430</link>
      <description>Thank you  jklaverstijn !&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Aug 2022 16:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-the-ERROR-message-to-the-log/m-p/831115#M328430</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-08-30T16:04:47Z</dc:date>
    </item>
  </channel>
</rss>

