<?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: difference between %nrbquote and %superq in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167895#M32292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to figure out differences between the 2 functions and I could hardly find. There is one situation where I have found differences :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;call symput('word', 'ben&amp;amp;jerry');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;word;&lt;BR /&gt;%put %nrbquote(&amp;amp;word); --&amp;gt;ISSUES WARNING&lt;BR /&gt;%put %superq(word);--&amp;gt;DOES NOT ISSUE WARNING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 14:19:26 GMT</pubDate>
    <dc:creator>Loko</dc:creator>
    <dc:date>2014-11-12T14:19:26Z</dc:date>
    <item>
      <title>difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167893#M32290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following code that uses %nrbquote and %superq to give the same results. I was curious what is the difference between them. Can I use %nrbquote in place of %superq and vice vera?&amp;nbsp; Thanks for any insights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a=%nrstr(Kaushal&amp;amp;Alex);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let c=%nrquote(&amp;amp;a);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%put &amp;amp;c;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let a=%nrstr(Kaushal&amp;amp;Alex);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; %let c=%superq(a);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%put &amp;amp;c;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167893#M32290</guid>
      <dc:creator>kaushal2040</dc:creator>
      <dc:date>2014-11-12T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167894#M32291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="active_link" href="https://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001061316.htm"&gt;https://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a001061316.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For %superq its on the left in the tree view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167894#M32291</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-12T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167895#M32292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to figure out differences between the 2 functions and I could hardly find. There is one situation where I have found differences :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;call symput('word', 'ben&amp;amp;jerry');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;word;&lt;BR /&gt;%put %nrbquote(&amp;amp;word); --&amp;gt;ISSUES WARNING&lt;BR /&gt;%put %superq(word);--&amp;gt;DOES NOT ISSUE WARNING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167895#M32292</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2014-11-12T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167896#M32293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loko,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%nrbquote will continue to resolve macro variable references.&amp;nbsp; To see the difference (and perhaps shed some light on why you get a warning), try adding this statement before you run your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let jerry=jamin;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 15:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167896#M32293</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-11-12T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167897#M32294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this code, I am not sure why macro variable Alex is not resolved in %nrbquote?&amp;nbsp; As you mentioned "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%nrbquote will continue to resolve macro variable references".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let Alex=Jamin;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%let a=%nrstr(Kaushal&amp;amp;Alex);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; %let c=%nrquote(&amp;amp;a);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%put &amp;amp;c;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 16:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167897#M32294</guid>
      <dc:creator>kaushal2040</dc:creator>
      <dc:date>2014-11-12T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167898#M32295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Loko's code, there was a live (unquoted) &amp;amp; captured by CALL SYMPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, the &amp;amp; is quoted by %nrstr.&amp;nbsp; All the subsequent quoting functions maintain the quoted status of the &amp;amp;, thus there is no resolution of &amp;amp;Alex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To illustrate, also try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put %unquote(&amp;amp;c);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's always a good thing to run tests when using quoting functions in macro language!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167898#M32295</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-11-12T17:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167899#M32296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great !!! Thanks a bunch, Astounding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 18:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/167899#M32296</guid>
      <dc:creator>kaushal2040</dc:creator>
      <dc:date>2014-11-12T18:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between %nrbquote and %superq</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/307121#M65737</link>
      <description>&lt;P&gt;SUPERQ masks the same characters as the %NRBQUOTE function. However, %SUPERQ does not attempt to resolve anything in the value&amp;nbsp;of a macro variable. %NRBQUOTE attempts to resolve any macro references or macro variable values in the argument before masking the result.&lt;/P&gt;&lt;P&gt;SUPERQ is the only quoting function that prevents the resolution of macro variables and macro references in the value */&lt;BR /&gt;of the specified macro variable.*/&lt;/P&gt;&lt;P&gt;SUPERQ accepts only the name of a macro variable as its argument, without an ampersand, and the other quoting functions accept any&amp;nbsp;text expression, including constant text, as an argument.*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-nrbquote-and-superq/m-p/307121#M65737</guid>
      <dc:creator>sas247</dc:creator>
      <dc:date>2016-10-25T13:47:10Z</dc:date>
    </item>
  </channel>
</rss>

