<?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: Masking special character when the subsetting variable is a quoted macro value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199281#M37296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a solution but may complicate troubleshooting:&lt;/P&gt;&lt;P&gt;if &amp;amp;var. =&amp;nbsp; %UNQUOTE(%NRSTR("&amp;amp;&amp;amp;ProvName&amp;amp;i..")) then output &amp;amp;data._&amp;amp;i.;&lt;/P&gt;&lt;P&gt;has 2 periods after the &amp;amp;I so the variable would resolve with an extra . at the end and fail equality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 15:25:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-07-09T15:25:32Z</dc:date>
    <item>
      <title>Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199278#M37293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro quoting question I hope you can help me with. I have the following code below. As you can see, I am passing a list of provider names into individual macro values. Then I am creating a dataset for each provider name by subsetting for the provider name in the second data step (macro groups).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the following statement (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;if &amp;amp;var. =&amp;nbsp; %UNQUOTE(%NRSTR("&amp;amp;&amp;amp;ProvName&amp;amp;i..")) then output &amp;amp;data._&amp;amp;i.;) &lt;/STRONG&gt;&lt;/SPAN&gt;is that I have cases such as this, a provider with a name such as "UNC P&lt;STRONG&gt;&amp;amp;A&lt;/STRONG&gt;&amp;nbsp; DEPAETMENT OF ANESTHESIOLOGY". - Note the "&lt;STRONG&gt;&amp;amp;A&lt;/STRONG&gt;" in bold above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore the code above becomes: &lt;STRONG&gt;if ProvName = "UNC P&amp;amp;A&amp;nbsp; DEPAETMENT OF ANESTHESIOLOGY" then output prov_nomiss_3393;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but then I get the warning: &lt;STRONG&gt;Apparent symbolic reference A not resolved.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I need to mask these special character, but I'm getting stuck on how to do it. What I am doing below is clearly not working. How can I successfully mask these special characters and stop get these warnings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is highly appreciated. Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;/*Passing the Provider Name into individual macro variables*/&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;data nodup_prov2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set nodup_prov;&lt;/P&gt;&lt;P&gt;*ProvName2 = strip('"'||strip(ProvName)||'"'); /*Quoted Provider Name*/&lt;/P&gt;&lt;P&gt;cnt = strip(_n_);&lt;/P&gt;&lt;P&gt;/*creating the individual macros*/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call symputx ('ProvName'||strip(cnt), ProvName);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*individual macro variables for each ProvName*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call symputx ('n', strip(cnt));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*macro with total number of observations on ProvName*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*Example output*/&lt;/P&gt;&lt;P&gt;%put &amp;amp;n.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ProvName1.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;ProvName&amp;amp;n..;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;/* Macro below generates the new data sets. Dynamically produce data set names */&lt;/P&gt;&lt;P&gt;/* on the DATA statement, using the ProvName macro above to create the new data sets*/&lt;/P&gt;&lt;P&gt;/* based upon the value of each unique ProvName macro value.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;%macro groups(data,var);&lt;/P&gt;&lt;P&gt;data %do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;data._&amp;amp;i.&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set &amp;amp;data.;&lt;/P&gt;&lt;P&gt;%do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; if &amp;amp;var. =&amp;nbsp; %UNQUOTE(%NRSTR("&amp;amp;&amp;amp;ProvName&amp;amp;i..")) then output &amp;amp;data._&amp;amp;i.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend groups;&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;/* Calling the macro GROUPS.&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;%groups(prov_nomiss, ProvName)&lt;/P&gt;&lt;P&gt;**;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 23:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199278#M37293</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-08T23:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199279#M37294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if "&amp;amp;var" =&amp;nbsp; "&amp;amp;&amp;amp;ProvName&amp;amp;i" then output &amp;amp;data._&amp;amp;i.;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 01:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199279#M37294</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2015-07-09T01:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199280#M37295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks slchen for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately your suggestion doesn't work. This ends up quoting the variable name only, without addressing the quoted provider names, which can contain special character or mnemonics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it resolves to: &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;if "ProvName" = "UNC P&amp;amp;A&amp;nbsp; DEPAETMENT OF ANESTHESIOLOGY" then output prov_nomiss_3393;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know have to use something like either %STR, %NRSTR, %SUPERQ, or something else, to protect these special character in the provider name, but I am struggling with how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199280#M37295</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-09T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199281#M37296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a solution but may complicate troubleshooting:&lt;/P&gt;&lt;P&gt;if &amp;amp;var. =&amp;nbsp; %UNQUOTE(%NRSTR("&amp;amp;&amp;amp;ProvName&amp;amp;i..")) then output &amp;amp;data._&amp;amp;i.;&lt;/P&gt;&lt;P&gt;has 2 periods after the &amp;amp;I so the variable would resolve with an extra . at the end and fail equality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 15:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199281#M37296</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-07-09T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199282#M37297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worth a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var = "%superq(ProvName&amp;amp;i)" then ...&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>Thu, 09 Jul 2015 15:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199282#M37297</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-07-09T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199283#M37298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this will work! %superQ is the only one I know that does not resolve to the end of the road &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199283#M37298</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-07-09T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199284#M37299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, besides what &lt;A __default_attr="5253" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; has suggested, a possible approach could also be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;upstream:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: red; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; symputx (&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'ProvName'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;||strip(cnt), cats(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'%nrstr('&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,ProvName,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;')'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;));&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;downstream:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: red; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;var.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;amp;&amp;amp;ProvName&amp;amp;i.."&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; then output &amp;amp;data._&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;i.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; background: white; font-size: 12.0pt; font-family: 'Courier New';"&gt;You see,&amp;nbsp; %UNQUOTE(%NRSTR ... will cancel each other, in your case, it is just redundant. What you need is to quote '&amp;amp;' at the macro compiling stage. So you need to quote it before assignment, you can't do it after that point.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199284#M37299</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-07-09T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199285#M37300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai.Ku,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Fantastic. T&lt;/SPAN&gt;hat did it the trick!! I was trying all kinds of iterations of these masking quoting function, and I was still getting warnings of unresolved macros due to special characters. Your call symput suggestion upstream solved the problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Hai.Ku and all you guys that contributed to this conversation. I truly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 16:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199285#M37300</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-09T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199286#M37301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I have a follow up question on this exercise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were successful in masking macro triggers, but now I am getting errors due to some provider names containing unmatched quotes. I'm getting something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: The quoted string currently being processed has become more than 262 characters long.&amp;nbsp; You may have unbalanced quotation marks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Line generated by the macro variable "PROVNAME2473".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "%NRSTR(PETER B O'DONNELL, MD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -------------&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 63-169: The word currently being processed has exceeded the maximum length of 65535 characters.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else can I add to the code below in order to&amp;nbsp; fix this issue? Again your help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is the code I am using:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;/*Passing the Procedure Description into individual macro variables*/&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set nodup_prov;&lt;/P&gt;&lt;P&gt;cnt = strip(_n_); &lt;/P&gt;&lt;P&gt;/*creating the individual macros*/&lt;/P&gt;&lt;P&gt;/* CATS function is a concatenation (concatenates multiple strings in one function call).&lt;/P&gt;&lt;P&gt;It functions the same way as the CAT function, but also STRIPs leading and trailing blanks*/&lt;/P&gt;&lt;P&gt;call symputx ('ProvName'||strip(cnt), CATS('%NRSTR(',ProvName,')')); /*individual macro variables for each ProvName*/&lt;/P&gt;&lt;P&gt;call symputx ('n', strip(cnt)); /*macro with total number of observartions on ProvName*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;**;&lt;/P&gt;&lt;P&gt;/*Example output*/&lt;/P&gt;&lt;P&gt;%put &amp;amp;n.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ProvName1.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;ProvName&amp;amp;n..;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;/* Macro below generates the new data sets. Dynamically produce data set names */&lt;/P&gt;&lt;P&gt;/* on the DATA statement, using the ProvName macro above to create the new data sets*/&lt;/P&gt;&lt;P&gt;/* based upon the value of each unique ProvName macro value.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;%macro groups(data,var);&lt;/P&gt;&lt;P&gt;data %do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;data._&amp;amp;i.&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set &amp;amp;data.;&lt;/P&gt;&lt;P&gt;%do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if &amp;amp;var. =&amp;nbsp;&amp;nbsp; "&amp;amp;&amp;amp;ProvName&amp;amp;i.." then output &amp;amp;data._&amp;amp;i.;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend groups;&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;/* Calling the macro GROUPS.&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;%groups(prov_nomiss, ProvName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 19:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199286#M37301</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-09T19:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199287#M37302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See suggestion #4 above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 20:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199287#M37302</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-07-09T20:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199288#M37303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah... the problem is the complexity of the macro variable to be used with %superq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in this example the macro variable &lt;STRONG style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;&amp;amp;ProvName&amp;amp;i.. &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; is not only one macro, it's many since it varies by the values of i, which takes on the value of the variable &lt;STRONG&gt;cnt&lt;/STRONG&gt;, which is the number of observation in the dataset (in this example, there are about 3800 providers).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of using %superq would be something like the code below. As you can see, the macro variable NewTitle will take the old macro variable Title (&lt;STRONG&gt;without the &amp;amp;&lt;/STRONG&gt;) with the function %Superq. As you can see, my case is a bit more complicated since my macro variable &lt;STRONG style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;&amp;amp;ProvName&amp;amp;i.. &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;is actually about 3800 difference macro values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA _NULL_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL SYMPUTX('Title','Revenue: %Breakdown by Region');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%LET NewTitle = %SUPERQ(Title);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** Warning Given ***;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%PUT Title = &amp;amp;Title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** No warning given ***;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%PUT NewTitle = &amp;amp;NewTitle;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So yes, %superq is probably the way to go, the issue is the way the macro &lt;STRONG style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;&amp;amp;ProvName&amp;amp;i.. &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;is set up, since I'd have to remove the &amp;amp;'s from &lt;STRONG style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;&amp;amp;ProvName&amp;amp;i.., &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;something like %superq(&lt;STRONG style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProvNamei), &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;which SAS doesn't like.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm totally stuck guys. Let me know what you think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199288#M37303</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-09T21:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199289#M37304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Astounding for figuring this out (giving credit to where credit is due). Thanks for bouncing ideas with me guys. Attached is the solution. This will mask everything in the character string. The key is to keep the iterative i as a macro variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;/*Passing the Procedure Description into individual macro variables*/&lt;/P&gt;&lt;P&gt;/*******************************************************************/&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set nodup_prov;&lt;/P&gt;&lt;P&gt;cnt = strip(_n_);&lt;/P&gt;&lt;P&gt;/*creating the individual macros*/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;call symputx ('ProvName'||strip(cnt), ProvName); /*individual macro variables for each ProvName*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;call symputx ('n', strip(cnt)); /*macro with total number of observartions on ProvName*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/*Example output*/&lt;/P&gt;&lt;P&gt;%put &amp;amp;n.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;ProvName1.;&lt;/P&gt;&lt;P&gt;%put &amp;amp;&amp;amp;ProvName&amp;amp;n..;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;/* Macro below generates the new data sets. Dynamically produce data set names */&lt;/P&gt;&lt;P&gt;/* on the DATA statement, using the ProvName macro above to create the new data sets*/&lt;/P&gt;&lt;P&gt;/* based upon the value of each unique ProvName macro value.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P&gt;%macro groups(data,var);&lt;/P&gt;&lt;P&gt;data %do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;data._&amp;amp;i.&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set &amp;amp;data.;&lt;/P&gt;&lt;P&gt;%do i=1 %to &amp;amp;n.;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if &amp;amp;var. = "%superq(ProvName&amp;amp;i)" then output &amp;amp;data._&amp;amp;i.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend groups;&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;/* Calling the macro GROUPS.&lt;/P&gt;&lt;P&gt;/************************************************************************/&lt;/P&gt;&lt;P&gt;%groups(prov_nomiss, ProvName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 21:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199289#M37304</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-09T21:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199290#M37305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course %superq() works as long as you only need to resolve one layer deeper. There are many macro quoting functions, some are broad, but not too deep, such as %superq(), some are deep but not as broad in a way, such as %nrstr() that best deals with &amp;amp; and %, such as %nrbquote() that best deals with unbalanced ()'". In SAS there are most likely more than one way to skin a cat. If go back to my solution,&lt;/P&gt;&lt;P&gt;Upstream can stay the same, this tackles &amp;amp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: red; background-position: initial;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt; symputx (&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: purple; background-position: initial;"&gt;'ProvName'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;||strip(cnt), cats(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: purple; background-position: initial;"&gt;'%nrstr('&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;,ProvName,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: purple; background-position: initial;"&gt;')'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;));&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt; font-style: inherit; background-color: #ffffff; font-family: 'Courier New'; font-weight: inherit; background-position: initial;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 12pt; font-style: inherit; background-color: #ffffff; font-family: 'Courier New'; font-weight: inherit; background-position: initial;"&gt;&lt;STRONG&gt;Only add another quoting function to tackle unbalanced '",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-style: inherit; font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit; background-position: initial;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: red; background-position: initial;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: teal; background-position: initial;"&gt;var.&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: purple; background-position: initial;"&gt;"%nrbquote(&amp;amp;&amp;amp;ProvName&amp;amp;i..)"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt; then output &amp;amp;data._&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: teal; background-position: initial;"&gt;i.&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'Courier New'; color: black; background-position: initial;"&gt;;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 01:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199290#M37305</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-07-10T01:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Masking special character when the subsetting variable is a quoted macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199291#M37306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai.Kuo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for showing us a different way to get this done. The subject of macro quoting functions just got a lot less nebulous for me after this discussion. I really appreciate you guys' help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, have a good day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Masking-special-character-when-the-subsetting-variable-is-a/m-p/199291#M37306</guid>
      <dc:creator>avbraga</dc:creator>
      <dc:date>2015-07-10T15:20:38Z</dc:date>
    </item>
  </channel>
</rss>

