<?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: Suppress Specific Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323692#M71779</link>
    <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I say error as it shows up as red in the log. I understand the actual issue, it's do with passing macro variables within a %str to a macro which uses %bquote. The date is the &lt;SPAN&gt;identifier, which is surrounded by&lt;/SPAN&gt;&amp;nbsp;double single quotes, not a double quote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to change any of the code, except for maybe adding an options statement like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options NONOTES=49;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 16:09:15 GMT</pubDate>
    <dc:creator>Rhys</dc:creator>
    <dc:date>2017-01-10T16:09:15Z</dc:date>
    <item>
      <title>Suppress Specific Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323587#M71744</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running someone else's code, which includes a macro that passes through sql to a sql server. They're setting up the&amp;nbsp;query using %str and double single quoting all text and dates, then the macro %bquote's it all and creates valid sql code. However SAS&amp;nbsp;prefers us to put spaces before an after quotes. Which would invalidate the sql code. So my log&amp;nbsp;is littered with the following errors/warnings. Everyone else seems fine with this as it still works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can re-write to not use %bquote and use proc sql; with connection to sql_server. However I do not want to re-write someone elses code that uses this method for dozens of sql queries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to suppress this message? It will clean up my log and also when the code is in EG, the process flow will not have red x's next to every sas script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rhys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;62 ''08/04/2017''&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;49&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;between a quoted string and the succeeding identifier is recommended.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323587#M71744</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-01-10T11:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Specific Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323670#M71767</link>
      <description>&lt;P&gt;First, that is not an error only a NOTE: Errors would halt a datastep or procedure.&lt;/P&gt;
&lt;P&gt;There may be work arounds but you haven't shown any code that would actually CAUSE that note. Your example does not show any identifier after the quoted string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may help to post the data step or procedure from the Log with the message(s) and paste into a code box openend using the {i} icon on menu bar in the forum. The code box will preserve the format of the code and error message. That _ is import in showing where SAS thinks the issue occurs but the forum boxes remove formatting unless using a code box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may help to run the code with Options MPRINT if you have macros as sometimes the actual issue is hidden by the macro processor.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323670#M71767</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-10T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Specific Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323692#M71779</link>
      <description>&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I say error as it shows up as red in the log. I understand the actual issue, it's do with passing macro variables within a %str to a macro which uses %bquote. The date is the &lt;SPAN&gt;identifier, which is surrounded by&lt;/SPAN&gt;&amp;nbsp;double single quotes, not a double quote.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not want to change any of the code, except for maybe adding an options statement like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options NONOTES=49;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 16:09:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323692#M71779</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-01-10T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Specific Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323894#M71850</link>
      <description>&lt;P&gt;That note actually says that your code isn't future&amp;nbsp;proof. So you really consider fixing the program.&lt;/P&gt;
&lt;P&gt;It sounds like you have this in many places, so perhaps you could make this more component based and just have&amp;nbsp;this logic in one place (a separate&amp;nbsp;macro).&lt;/P&gt;
&lt;P&gt;The only way to fix this is with NONOTES, but then you might loose some&amp;nbsp;valuable information in the log.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 11:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/323894#M71850</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-11T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Specific Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/324190#M71945</link>
      <description>Thanks, I thought as much, I just wanted to check to see if there was anything obscure I didn't know about.</description>
      <pubDate>Thu, 12 Jan 2017 09:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Suppress-Specific-Error/m-p/324190#M71945</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2017-01-12T09:36:32Z</dc:date>
    </item>
  </channel>
</rss>

