<?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: NOTE 49-169 error during macro compilation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576621#M163241</link>
    <description>&lt;P&gt;Thanks Astounding!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the str( ) and a % sign before the unbalanced quotation mark solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 14:51:04 GMT</pubDate>
    <dc:creator>aaronh</dc:creator>
    <dc:date>2019-07-25T14:51:04Z</dc:date>
    <item>
      <title>NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576599#M163233</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macro, in which there are a few %let statements like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro example(x,y);

%if &amp;amp;x. = city %then %do; 
%let place = %bquote(Children's Hospital);
%end;

...
%mend example;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;During macro compilation, it produces a note:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space... is recommended.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to amend this? I thought the %bquote( ) function is supposed to mask the quotation mark. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576599#M163233</guid>
      <dc:creator>aaronh</dc:creator>
      <dc:date>2019-07-25T14:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576606#M163236</link>
      <description>&lt;P&gt;%BQUOTE does mask, but it has its effect as the macro executes.&amp;nbsp; It has no effect when the macro is compiled.&amp;nbsp; You should be able to switch to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let place = %str(Children%'s Hospital);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576606#M163236</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-07-25T14:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576613#M163239</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274317"&gt;@aaronh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro, in which there are a few %let statements like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro example(x,y);

%if &amp;amp;x. = city %then %do; 
%let place = %bquote(Children's Hospital);
%end;

...
%mend example;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;During macro compilation, it produces a note:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space... is recommended.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to amend this? I thought the %bquote( ) function is supposed to mask the quotation mark. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;NOT an error.&lt;/STRONG&gt; That note occurs in almost any instance of a quote and other character that is not inside a masked string. Special constructs of dates, '01Jan2019'd, times, '13:15:25't, datetime, '01Jan2019:13:15:25'dt tell SAS to treat these as special values. Name literals such as 'Not a standard/SAS var'n uses the n to indicate a special variable name literal such as when addressing external database systems that all variable names that do not meet SAS name requirements. The note indicates that possibly at some point in the system your use &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;might&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt; be interpreted differently.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576613#M163239</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-25T14:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576620#M163240</link>
      <description>Thank you ballardw!</description>
      <pubDate>Thu, 25 Jul 2019 14:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576620#M163240</guid>
      <dc:creator>aaronh</dc:creator>
      <dc:date>2019-07-25T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576621#M163241</link>
      <description>&lt;P&gt;Thanks Astounding!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the str( ) and a % sign before the unbalanced quotation mark solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576621#M163241</guid>
      <dc:creator>aaronh</dc:creator>
      <dc:date>2019-07-25T14:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576706#M163276</link>
      <description>&lt;P&gt;How are you using the macro variable PLACE ?&lt;/P&gt;
&lt;P&gt;Perhaps you can just add real quotes to the value instead of trying to use macro quoting.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let place = "Children's Hospital";
....
data ...
    location = &amp;amp;place ;
...
    
title1 "Report for "  &amp;amp;place ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jul 2019 18:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/576706#M163276</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-25T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/577764#M163754</link>
      <description>Thanks for the input! I was using it in a data step where statement:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;where place = "&amp;amp;place.";&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2019 14:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/577764#M163754</guid>
      <dc:creator>aaronh</dc:creator>
      <dc:date>2019-07-30T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: NOTE 49-169 error during macro compilation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/577789#M163765</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/274317"&gt;@aaronh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for the input! I was using it in a data step where statement:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;where place = "&amp;amp;place.";&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly.&lt;/P&gt;
&lt;P&gt;So if PLACE already has the quotes built in then change that to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where place = &amp;amp;place;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 15:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTE-49-169-error-during-macro-compilation/m-p/577789#M163765</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-30T15:18:20Z</dc:date>
    </item>
  </channel>
</rss>

