<?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: Macro Quoting functions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245142#M45697</link>
    <description>&lt;P&gt;If there were an easy/short explanation for this, I'm pretty sure that should be in the documentation.&lt;/P&gt;
&lt;P&gt;Read again, read various papers on the subject.&lt;/P&gt;
&lt;P&gt;Use examples in doc, modify them and notice the behaviour.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 12:17:15 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-01-21T12:17:15Z</dc:date>
    <item>
      <title>Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245134#M45694</link>
      <description>&lt;P&gt;May I request someone to provide me an easy example to understand the macro functions like %str, %nrstr, %quote and %bquote? Although I read the documentation I've trouble understanding them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 11:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245134#M45694</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-01-21T11:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245142#M45697</link>
      <description>&lt;P&gt;If there were an easy/short explanation for this, I'm pretty sure that should be in the documentation.&lt;/P&gt;
&lt;P&gt;Read again, read various papers on the subject.&lt;/P&gt;
&lt;P&gt;Use examples in doc, modify them and notice the behaviour.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245142#M45697</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-01-21T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245148#M45700</link>
      <description>&lt;P&gt;A former colleague of mine, Roland Rashleigh-Berry, has published a nice article on this subject: &lt;A href="http://www.datasavantconsulting.com/roland/mquoting.html" target="_blank"&gt;http://www.datasavantconsulting.com/roland/mquoting.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think you'll like it.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245148#M45700</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-21T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245150#M45702</link>
      <description>&lt;P&gt;I recall a really nice blog post from one of the SAS folks on this subject. &amp;nbsp;Does anyone remember that or am I having a senior moment?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245150#M45702</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-01-21T12:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245153#M45705</link>
      <description>&lt;P&gt;Just my opinion, but if your having to use these, then there is 95% chance of a better way of doing things using Base SAS programming, in fact other than 1% of extreme circumstances, almost everything can be done in Base SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245153#M45705</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-21T12:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245230#M45734</link>
      <description>&lt;P&gt;Perhaps &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__﻿&lt;/a&gt;&amp;nbsp;you are referring to this blog post from Russ Tyndall.&amp;nbsp; I think it's an excellent resource.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sgf/2014/08/15/macro-quoting-made-easy/" target="_self"&gt;http://blogs.sas.com/content/sgf/2014/08/15/macro-quoting-made-easy/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more detailed reviews, see UG such as:&lt;/P&gt;
&lt;P&gt;Whitlock: &lt;A href="http://www.lexjansen.com/nesug/nesug03/at/at012.pdf" target="_self"&gt;http://www.lexjansen.com/nesug/nesug03/at/at012.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Dunn: &lt;A href="http://www.lexjansen.com/scsug/2010/Dunn_5/Macro_Quoting.pdf" target="_self"&gt;http://www.lexjansen.com/scsug/2010/Dunn_5/Macro_Quoting.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 17:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245230#M45734</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-01-21T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245385#M45781</link>
      <description>&lt;P&gt;&amp;nbsp;Quickly &amp;nbsp;go through this . Detials check documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%str, %nrstr &amp;nbsp;,%quote ,%bquote are all used to mask the special characters (like blank comma ..) in a string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%str, %nrstr &amp;nbsp;are generally for a STRING .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%str will resolve the macro variable if it is included in the STRING. and need add % before non-pair &amp;nbsp;' &amp;nbsp;" ( &amp;nbsp;) &amp;nbsp;% &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; %nrstr&amp;nbsp;will NOT resolve the macro variable if it is included in the STRING. and need add % before non-pair &amp;nbsp;' &amp;nbsp;" ( &amp;nbsp;) &amp;nbsp;% &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%quote ,%bquote are generally for a MACRO VARIABLE .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%quote is old version of&amp;nbsp;%bquote . Now almost be replaced by&amp;nbsp;%bquote .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;%bquote &amp;nbsp;unlike&amp;nbsp;%quote &amp;nbsp;which need&amp;nbsp;add % before non-pair &amp;nbsp;' &amp;nbsp;" &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 05:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245385#M45781</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-22T05:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245387#M45782</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An simple example would be helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 05:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245387#M45782</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-01-22T05:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Quoting functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245389#M45783</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%str, %nrstr &amp;nbsp;are generally for a STRING .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%str will resolve the macro variable if it is included in the STRING. and need add % before non-pair &amp;nbsp;' &amp;nbsp;" ( &amp;nbsp;) &amp;nbsp;% &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;1)&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;54 %let a=xxx;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;55 %let b=%str(xxx&amp;amp;a.xxx);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;56 %put &amp;amp;b ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;xxxxxxxxx&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;54 %let a=xxx;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;55 %let b=%str(xxx&amp;amp;a.x%'xx%"xx%%);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;56 %put &amp;amp;b ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;xxxxxxx'xx"xx%&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;%nrstr&amp;nbsp;will NOT resolve the macro variable if it is included in the STRING. and need add % before non-pair &amp;nbsp;' &amp;nbsp;" ( &amp;nbsp;) &amp;nbsp;% &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1)&lt;/P&gt;
&lt;P&gt;54 %let a=xxx;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;55 %let b=%nrstr(xxx&amp;amp;a.x%'xx%"xx%%);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;56 %put &amp;amp;b ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;xxx&amp;amp;a.x'xx"xx%&lt;/DIV&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;
&lt;P&gt;&lt;SPAN&gt;%quote ,%bquote are generally for a MACRO VARIABLE .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%quote is old version of&amp;nbsp;%bquote . Now almost be replaced by&amp;nbsp;%bquote .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;%bquote &amp;nbsp;unlike&amp;nbsp;%quote &amp;nbsp;which need&amp;nbsp;add % before non-pair &amp;nbsp;' &amp;nbsp;" &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;%bquote will resolve the macro variable in it .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;54 %let a=xxx;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;55 %let b=%bquote(xxx&amp;amp;a.x'xx"xx);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;56 %put &amp;amp;b ;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;xxxxxxx'xx"xx&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jan 2016 05:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Quoting-functions/m-p/245389#M45783</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-22T05:34:35Z</dc:date>
    </item>
  </channel>
</rss>

