<?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: %str(ERR)OR in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799058#M314162</link>
    <description>&lt;P&gt;Because they are using lazy log scanning tools that cannot tell the difference between the text ERROR in the code and an actual ERROR message generate by that code (or by SAS itself).&amp;nbsp; By adding the extra macrro quoting (which is NOT needed) then the code no longer has the text ERROR as there is a ) in the middle of it.&amp;nbsp; &amp;nbsp;Using %STR(ERROR) would defeat that purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I use this grep string to search for ERROR messages and I do not get false positives from code lines echoed in the log.&lt;/P&gt;
&lt;PRE&gt;grep '^ERROR.*:' myfile.log&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 03:13:11 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-02-28T03:13:11Z</dc:date>
    <item>
      <title>%str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799051#M314158</link>
      <description>&lt;P&gt;While I review other's program,see code like this '%str(ERR)OR','%str(WARN)ING',why programming like this other than "%str(ERROR)",%strWARNING&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 02:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799051#M314158</guid>
      <dc:creator>wzl9527</dc:creator>
      <dc:date>2022-02-28T02:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: %str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799053#M314160</link>
      <description>&lt;P&gt;my fault,it's '%str(warning)'&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 02:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799053#M314160</guid>
      <dc:creator>wzl9527</dc:creator>
      <dc:date>2022-02-28T02:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: %str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799058#M314162</link>
      <description>&lt;P&gt;Because they are using lazy log scanning tools that cannot tell the difference between the text ERROR in the code and an actual ERROR message generate by that code (or by SAS itself).&amp;nbsp; By adding the extra macrro quoting (which is NOT needed) then the code no longer has the text ERROR as there is a ) in the middle of it.&amp;nbsp; &amp;nbsp;Using %STR(ERROR) would defeat that purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I use this grep string to search for ERROR messages and I do not get false positives from code lines echoed in the log.&lt;/P&gt;
&lt;PRE&gt;grep '^ERROR.*:' myfile.log&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 03:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799058#M314162</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-28T03:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: %str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799083#M314181</link>
      <description>thank you!</description>
      <pubDate>Mon, 28 Feb 2022 06:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799083#M314181</guid>
      <dc:creator>wzl9527</dc:creator>
      <dc:date>2022-02-28T06:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: %str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799279#M314278</link>
      <description>&lt;P&gt;This is a convention we use in the &lt;A href="https://github.com/sasjs/core" target="_self"&gt;SASjs Core&lt;/A&gt; library quite extensively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This library was built to support lazy programmers, and sometimes the fastest way to search for an error in a log (especially within applications that do not support regex by default, such as a browser) is simply to CTRL+F and type "ERROR".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By breaking up the word ERROR into %str(ERR)OR, the number of false positives are drastically reduced.&amp;nbsp; That is the only reason.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 11:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/799279#M314278</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-03-01T11:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: %str(ERR)OR</title>
      <link>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/800088#M314690</link>
      <description>Thanks！</description>
      <pubDate>Fri, 04 Mar 2022 08:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/str-ERR-OR/m-p/800088#M314690</guid>
      <dc:creator>wzl9527</dc:creator>
      <dc:date>2022-03-04T08:11:11Z</dc:date>
    </item>
  </channel>
</rss>

