<?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 Get emailed first line of error from log in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-emailed-first-line-of-error-from-log/m-p/931521#M366457</link>
    <description>&lt;P&gt;Hi there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am automating error checking in some of our processes. When I get the error emailed to me, I am getting the last error in the log. How do I ensure I get the 1st error message?&lt;/P&gt;
&lt;P&gt;I am emailing myself the following:&lt;/P&gt;
&lt;PRE&gt;&amp;amp;syserrortext&lt;/PRE&gt;
&lt;P&gt;Is there any other one I can use so I get exactly the first error?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 09:27:34 GMT</pubDate>
    <dc:creator>Citrine10</dc:creator>
    <dc:date>2024-06-10T09:27:34Z</dc:date>
    <item>
      <title>Get emailed first line of error from log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-emailed-first-line-of-error-from-log/m-p/931521#M366457</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am automating error checking in some of our processes. When I get the error emailed to me, I am getting the last error in the log. How do I ensure I get the 1st error message?&lt;/P&gt;
&lt;P&gt;I am emailing myself the following:&lt;/P&gt;
&lt;PRE&gt;&amp;amp;syserrortext&lt;/PRE&gt;
&lt;P&gt;Is there any other one I can use so I get exactly the first error?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 09:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-emailed-first-line-of-error-from-log/m-p/931521#M366457</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2024-06-10T09:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get emailed first line of error from log</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-emailed-first-line-of-error-from-log/m-p/931536#M366459</link>
      <description>&lt;P&gt;There is not an automatic macro variable that stores the first error.&amp;nbsp; One way to get the first error is to parse the log file.&amp;nbsp; If you search lexjansen.com for user group papers on log parsing, you will find lots of approaches.&amp;nbsp; My favorite approach is:&amp;nbsp;&lt;A href="https://www.lexjansen.com/nesug/nesug01/cc/cc4008.pdf" target="_blank"&gt;https://www.lexjansen.com/nesug/nesug01/cc/cc4008.pdf&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 11:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-emailed-first-line-of-error-from-log/m-p/931536#M366459</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-06-10T11:22:37Z</dc:date>
    </item>
  </channel>
</rss>

