<?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 resolve a macro variable within a comment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229974#M41659</link>
    <description>&lt;P&gt;I would like to resolve a macro variable within a comment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*xxx yyy &amp;amp;MACVAR zzz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2015 21:01:13 GMT</pubDate>
    <dc:creator>treetop</dc:creator>
    <dc:date>2015-10-14T21:01:13Z</dc:date>
    <item>
      <title>resolve a macro variable within a comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229974#M41659</link>
      <description>&lt;P&gt;I would like to resolve a macro variable within a comment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*xxx yyy &amp;amp;MACVAR zzz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229974#M41659</guid>
      <dc:creator>treetop</dc:creator>
      <dc:date>2015-10-14T21:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: resolve a macro variable within a comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229979#M41660</link>
      <description>&lt;P&gt;No, but if you just want to see it in the log, you replace the comment with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put xxx yyy &amp;amp;MACVAR zzz;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 21:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229979#M41660</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-10-14T21:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: resolve a macro variable within a comment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229990#M41665</link>
      <description>&lt;P&gt;Use %UNQUOTE().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(comment);
* First comment ;
%unquote(* &amp;amp;comment) ;
proc print data=sashelp.class; run;
%mend test;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint;
%test(Hi there);

MPRINT(TEST):   * First comment ;
MPRINT(TEST):   * Hi there ;
MPRINT(TEST):   proc print data=sashelp.class;
MPRINT(TEST):   run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Oct 2015 01:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/resolve-a-macro-variable-within-a-comment/m-p/229990#M41665</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-10-15T01:14:11Z</dc:date>
    </item>
  </channel>
</rss>

