<?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: %bquote and %nrbquote in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/bquote-and-nrbquote/m-p/157703#M30781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;macro quoting in a current SAS session is already terrible.&amp;nbsp; Using that in combination with sas/connect remote session (different machine types) is even more troublesome.&amp;nbsp; Please explain better you real issue / question this is far too fragmented.&amp;nbsp; (SAS versions?&amp;nbsp; OS types? goal?) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 13:36:22 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-08-12T13:36:22Z</dc:date>
    <item>
      <title>%bquote and %nrbquote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/bquote-and-nrbquote/m-p/157702#M30780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;I was trying to mask single quotation mark in a SAS macro variable &amp;amp; was using %bquote to do that.&lt;/P&gt;&lt;P&gt;But using %bquote I was getting reolving issues especially when I use multiple '&amp;amp;' as in the example below. I was thinking that %bquote wouldn't mask '&amp;amp;' unlike %nrbquote.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, in the below example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let MACVAR1=10;&lt;BR /&gt;%let a1=MACVAR1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffcc00;"&gt;%let j=&amp;amp;a1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;%let k=%bquote(&amp;amp;a1); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ffff;"&gt;%let m=%nrbquote(&amp;amp;a1&lt;/SPAN&gt;); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;%put "double_j = &amp;amp;&amp;amp;&amp;amp;j";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00;"&gt;%put "double_k = &amp;amp;&amp;amp;&amp;amp;k";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ffff;"&gt;%put "double_m = &amp;amp;&amp;amp;&amp;amp;m";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to SERVER commencing.&lt;/P&gt;&lt;P&gt;"double_j = 10"&lt;/P&gt;&lt;P&gt;"double_k = &amp;amp;MACVAR1"&lt;/P&gt;&lt;P&gt;"double_m = &amp;amp;MACVAR1"&lt;/P&gt;&lt;P&gt;NOTE: Remote submit to SERVER complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Reading through the SAS documentation I was expecting that double_k should also be resolved as 10 not "&amp;amp;MACVAR1" as we are using %bquote. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Experts, please correct me if I am wrong here. Please advise. &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Geo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/bquote-and-nrbquote/m-p/157702#M30780</guid>
      <dc:creator>geoonline</dc:creator>
      <dc:date>2014-08-12T12:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: %bquote and %nrbquote</title>
      <link>https://communities.sas.com/t5/SAS-Programming/bquote-and-nrbquote/m-p/157703#M30781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;macro quoting in a current SAS session is already terrible.&amp;nbsp; Using that in combination with sas/connect remote session (different machine types) is even more troublesome.&amp;nbsp; Please explain better you real issue / question this is far too fragmented.&amp;nbsp; (SAS versions?&amp;nbsp; OS types? goal?) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/bquote-and-nrbquote/m-p/157703#M30781</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-12T13:36:22Z</dc:date>
    </item>
  </channel>
</rss>

