<?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: macro quoting at macro parameter value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401483#M97414</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/148952"&gt;@daisy6&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If using SAS EG or SAS Studio then make sure that your final test is done AFTER you've closed and re-opened your SAS session. This is to avoid that some "left-overs" allow you to run code which actually doesn't work in a fresh session.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 19:03:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-10-05T19:03:10Z</dc:date>
    <item>
      <title>macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401423#M97387</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I create a macro parameter procedure, can a macro value be refered?&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;%let report=Monthly;&lt;BR /&gt;%let infile=monthly_TestReport_2017-9.xlsx;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ReadXlsbd (inf=&amp;amp;infile., title=&amp;amp;report.);&lt;/P&gt;&lt;P&gt;when I do that, it does not work. Is possible anyway to solve that problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401423#M97387</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-10-05T16:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401425#M97389</link>
      <description>Not working? Post log with mprint and symbolgen active. I don't see a reason for not working.</description>
      <pubDate>Thu, 05 Oct 2017 16:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401425#M97389</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-10-05T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401427#M97391</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/148952"&gt;@daisy6&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I do that, &lt;STRONG&gt;it does not work.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does 'not work' mean?&amp;nbsp;&lt;BR /&gt;Post your full code and log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use MPRINT and SYMBOLGEN to make sure the log has all the macro information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, this works, so you're doing something wrong but you haven't provided enough information for us to tell you what it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let test=one;
%let random = two;

%macro demo(var=);

%put "Macro Variable is " &amp;amp;var.;

%mend;

%demo(var=&amp;amp;test.);
%demo(var=&amp;amp;random.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401427#M97391</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-05T16:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401432#M97393</link>
      <description>&lt;P&gt;I test my code again, and it works this time.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401432#M97393</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-10-05T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401433#M97394</link>
      <description>&lt;P&gt;Thanks for reply!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401433#M97394</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-10-05T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401443#M97398</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/148952"&gt;@daisy6&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;When I create a macro parameter procedure, can a macro value be refered?&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;%let report=Monthly;&lt;BR /&gt;%let infile=monthly_TestReport_2017-9.xlsx;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%ReadXlsbd (inf=&amp;amp;infile., title=&amp;amp;report.);&lt;/P&gt;
&lt;P&gt;when I do that, it does not work. Is possible anyway to solve that problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;By any chance are you attempting to use the macro variable Report to place the text "Monthly" into the text of the Infile macro variable?&lt;/P&gt;
&lt;P&gt;That would be&lt;/P&gt;
&lt;P&gt;%let infile=&amp;amp;report&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;_TestReport_2017-9.xlsx;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It really helps to show what you think you want to build given pieces as we are having to make lots of guesses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401443#M97398</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-05T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401483#M97414</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/148952"&gt;@daisy6&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If using SAS EG or SAS Studio then make sure that your final test is done AFTER you've closed and re-opened your SAS session. This is to avoid that some "left-overs" allow you to run code which actually doesn't work in a fresh session.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 19:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/401483#M97414</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-10-05T19:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: macro quoting at macro parameter value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/403203#M97970</link>
      <description>&lt;P&gt;Thank you for reply. Ballardw&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-quoting-at-macro-parameter-value/m-p/403203#M97970</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2017-10-11T15:04:37Z</dc:date>
    </item>
  </channel>
</rss>

