<?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: How to mask the '%' in  Macro Parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832583#M329090</link>
    <description>&lt;P&gt;The %UPCASE function will remove macro quoting.&amp;nbsp; If you want to keep the % sign quoted, change to %QUPCASE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    %let endlike= %nrstr(%t);
2    %let xx= %qupcase(&amp;amp;endlike);
3
4    %put &amp;amp;xx &amp;amp;endlike;
%T %t
&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Sep 2022 20:57:25 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-09-09T20:57:25Z</dc:date>
    <item>
      <title>How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832576#M329083</link>
      <description>&lt;P&gt;I am creating a macro.&amp;nbsp; My macro Variable have the '%' symbol . I am getting the following Warning. How I can avoid this warning.&amp;nbsp; My macro variable resolving correctly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let endlike= %nrstr(%t);
%let xx= %upcase(&amp;amp;endlike);

%put &amp;amp;xx &amp;amp;endlike;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1662754929989.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75102i92F1BC0E1A4F55E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1662754929989.png" alt="SASuserlot_0-1662754929989.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thank you for your inputs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832576#M329083</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-09-09T20:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832577#M329084</link>
      <description>&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nomerror;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832577#M329084</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-09T20:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832578#M329085</link>
      <description>&lt;P&gt;Thank you. But,&amp;nbsp; what about if any r real&amp;nbsp; macro invocation problems exist in my rest of the code.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832578#M329085</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-09-09T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832579#M329086</link>
      <description>&lt;P&gt;How do you distinguish between this example and 'real' macro invocation problems?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832579#M329086</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-09T20:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832581#M329088</link>
      <description>&lt;P&gt;I think that's my question too. Here in the log I can see it &amp;amp;XX resolved to '%T '&amp;nbsp; that's why I thought its not a&amp;nbsp; issue. Correct me if I am wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832581#M329088</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-09-09T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832583#M329090</link>
      <description>&lt;P&gt;The %UPCASE function will remove macro quoting.&amp;nbsp; If you want to keep the % sign quoted, change to %QUPCASE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    %let endlike= %nrstr(%t);
2    %let xx= %qupcase(&amp;amp;endlike);
3
4    %put &amp;amp;xx &amp;amp;endlike;
%T %t
&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/832583#M329090</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-09-09T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask the '%' in  Macro Parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/833001#M329293</link>
      <description>&lt;P&gt;It worked. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 20:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-mask-the-in-Macro-Parameter/m-p/833001#M329293</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2022-09-12T20:55:37Z</dc:date>
    </item>
  </channel>
</rss>

