<?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: a question on how to call a macro variable within a macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937297#M368288</link>
    <description>&lt;P&gt;What if I want to pass two variables to the definekey()? I tried and failed if I set up key with more than 1 variable.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 19:40:48 GMT</pubDate>
    <dc:creator>stataq</dc:creator>
    <dc:date>2024-07-26T19:40:48Z</dc:date>
    <item>
      <title>a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937293#M368284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have following code that can be run as is:&lt;/P&gt;
&lt;PRE&gt;data test;
  length Make $13.;

  declare hash found_keys();
    found_keys.definekey('Make','Model');
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;
  stop;
run;&lt;/PRE&gt;
&lt;P&gt;I tried to put it into an macro but somehow it won't work. Could anyone tell me why? what should I do in order to resolve the issue?&lt;/P&gt;
&lt;PRE&gt;%macro m_test(key=);
data test;
  length Make $13.;

  declare hash found_keys();
    found_keys.definekey(&amp;amp;key.);
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;
  stop;
run;
%mend;&lt;BR /&gt;
%m_test(key=%bquote('Make', 'Model'));
&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937293#M368284</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T19:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937294#M368285</link>
      <description>&lt;P&gt;Please very clearly describe what "didn't work" means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran your data step and the macro creating a different data set and the two resulting data sets compare as the same.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937294#M368285</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-26T19:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937295#M368286</link>
      <description>&lt;P&gt;The only difference between your first data step and the data step generated by your call to the macro is the case of the letter M in the name of the key variable you pass to the DEFINEKEY() hash method.&amp;nbsp; And since SAS variable names are case insensitive that should not matter.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937295#M368286</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-26T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937296#M368287</link>
      <description>&lt;P&gt;Sorry, updated my question. for the case when the key is more than one variable, my setup won't run.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937296#M368287</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937297#M368288</link>
      <description>&lt;P&gt;What if I want to pass two variables to the definekey()? I tried and failed if I set up key with more than 1 variable.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937297#M368288</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937303#M368289</link>
      <description>&lt;P&gt;Wrong quoting function, try:&lt;/P&gt;
&lt;PRE&gt;%m_test(key=%str('Make', 'Model'));&lt;/PRE&gt;
&lt;P&gt;Suggestion: if you are trying to duplicate the results of data step code then do not overwrite the data set in the macro. Using the same name for the output data set means you can't compare the sets to see if the results are truly identical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Considering that your other post &lt;A href="https://communities.sas.com/t5/SAS-Programming/how-to-set-up-parameters-in-marco/m-p/937253#M368263" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/how-to-set-up-parameters-in-marco/m-p/937253#M368263&lt;/A&gt; was how to create such a list as your multiple key values without passing it as quoted and comma delimited values I am wondering why that wasn't applied to this code?????&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 19:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937303#M368289</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-26T19:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937304#M368290</link>
      <description>&lt;P&gt;If I setup key=Maker Model, and try to use the answer from my other post, change it to 'Maker', 'Model' and then pass it through this code chunk, it did not work. So I think maybe I need to simply the process: instead of adding a step to make&amp;nbsp;"key=Maker Model" fit, I can set it up as "Key="Marker', 'Model'". But somehow it did not work.&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I bind those two together , I can have following codes but it is not working. Not sure how to fix it:&lt;/P&gt;
&lt;PRE&gt;%macro m_test(varlst=);

%let key=%str(%')%qsysfunc(tranwrd(&amp;amp;varlst.,%str( ),%str(%', %')))%str(%');

data test;
  declare hash found_keys();
    found_keys.definekey(&amp;amp;key.);
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;
  stop;
run;
%mend;

%m_test(varlst=Make Model);&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2024 20:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937304#M368290</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937311#M368295</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;%macro m_test(varlist=);
%let key=;
%do i = 1 %to %sysfunc(countw(&amp;amp;varlist.));
   %let word=%scan(&amp;amp;varlist.,&amp;amp;i.);
   %if &amp;amp;i=1 %then %let key=%sysfunc(quote(&amp;amp;word.));
   %else %let key = &amp;amp;key.,%sysfunc(quote(&amp;amp;word.));
%end;

%put Key is: &amp;amp;key.;

data test;
  declare hash found_keys();
    found_keys.definekey(&amp;amp;key.);
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;
  stop;
run;
%mend;&lt;/PRE&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>Fri, 26 Jul 2024 20:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937311#M368295</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-26T20:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937312#M368296</link>
      <description>&lt;P&gt;Looks like it works with two key variable setup. Then my question is, my earlier code also define key as 'Make', 'Model', why it did not pass to found_keys.definekey() correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I substitute "key" part with following codes that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt;&amp;nbsp;suggested&lt;/P&gt;
&lt;PRE&gt;%let key=%str(%')%qsysfunc(tranwrd(&amp;amp;varlst.,%str( ),%str(%', %')))%str(%');

%put Key is: &amp;amp;key.;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;It looks to me the key should be the same as yours, but it won't work. What might be the reason that cause this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 21:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937312#M368296</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937314#M368298</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448857"&gt;@stataq&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Then my question is, my earlier code also define key as 'Make', 'Model', why it did not pass to found_keys.definekey() correctly?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's because the %BQUOTE function added invisible macro quoting characters to the parameter in the macro call, but then you did not &lt;FONT color="#339966"&gt;&lt;STRONG&gt;remove&lt;/STRONG&gt;&lt;/FONT&gt; them where necessary:&lt;/P&gt;
&lt;PRE&gt;found_keys.definekey(&lt;FONT size="4" color="#339966"&gt;&lt;STRONG&gt;%unquote(&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;key.&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2024 21:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937314#M368298</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-07-26T21:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937333#M368300</link>
      <description>&lt;P&gt;If you use %STR() to add the macro quotes in the call it works.&lt;/P&gt;
&lt;P&gt;If you add %UNQUOTE() into the macro code to remove any macro quoting before using the value it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I would use &lt;A href="https://github.com/sasutils/macros/blob/master/qlist.sas" target="_self"&gt;%QLIST() macro&lt;/A&gt; to add the quotes, commas and parentheses.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro m_test(keyvars);
data test;
  length Make $13.;

  declare hash found_keys();
    found_keys.definekey%qlist(&amp;amp;keyvars);
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;
  stop;
run;
%mend;
options mprint;
%m_test(Make Model);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 23:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937333#M368300</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-26T23:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937334#M368301</link>
      <description>what above the case when I set varlst=make model, and used %let key=%str(%')%qsysfunc(tranwrd(&amp;amp;varlst.,%str( ),%str(%', %')))%str(%'); (in one of my reply). Here I did not use %bquote and the value still not pass to found_keys.definkey(). Any idea?</description>
      <pubDate>Fri, 26 Jul 2024 23:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937334#M368301</guid>
      <dc:creator>stataq</dc:creator>
      <dc:date>2024-07-26T23:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937335#M368302</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448857"&gt;@stataq&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;what above the case when I set varlst=make model, and used %let key=%str(%')%qsysfunc(tranwrd(&amp;amp;varlst.,%str( ),%str(%', %')))%str(%'); (in one of my reply). Here I did not use %bquote and the value still not pass to found_keys.definkey(). Any idea?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But you did use %QSYSFUNC().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But why add any macro quoting?&amp;nbsp; Just use double quotes instead and you can use %SYSFUNC() instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let key="%sysfunc(tranwrd(&amp;amp;varlist.,%str( ),"%str(,)"))";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Example;&lt;/P&gt;
&lt;PRE&gt;1    %let varlist=a b c ;
2    %let key="%sysfunc(tranwrd(&amp;amp;varlist.,%str( ),"%str(,)"))";
3    %Put &amp;amp;=varlist &amp;amp;=key ;
VARLIST=a b c KEY="a","b","c"

&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2024 23:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937335#M368302</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-26T23:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937344#M368304</link>
      <description>&lt;PRE&gt;149  %let varlist=a   b    c ;
150  %let key="%sysfunc(prxchange(s/\s+/%str(",")/,-1,&amp;amp;varlist.))";
151  %Put &amp;amp;=varlist &amp;amp;=key ;
VARLIST=a   b    c KEY="a","b","c"
&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jul 2024 07:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937344#M368304</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-27T07:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937345#M368305</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/448857"&gt;@stataq&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Then my question is, my earlier code also define key as 'Make', 'Model', why it did not pass to found_keys.definekey() correctly?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's because the %BQUOTE function added invisible macro quoting characters to the parameter in the macro call, but then you did not &lt;FONT color="#339966"&gt;&lt;STRONG&gt;remove&lt;/STRONG&gt;&lt;/FONT&gt; them where necessary:&lt;/P&gt;
&lt;PRE&gt;found_keys.definekey(&lt;FONT size="4" color="#339966"&gt;&lt;STRONG&gt;%unquote(&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;key.&lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just to be clear it is not your fault that you did not know to use %UNQUOTE.&amp;nbsp; The macro language should have removed these invisible quoting characters automatically instead of sending them off to cause an error for the DATA step compiler.&amp;nbsp; But there is an old bug that has been there maybe always (?), which means the automatic unquoting sometimes does not work.&amp;nbsp; So if you have introduced macro quoting of any sort, and if the code in shown in your log looks exactly correct but gives an error, it's always good to try adding an explicit %unquote to see if that will resolve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See for the example in the docs for the %unquote function:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1k3cotqhvgwk0n105gyfe1cqg9m.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1k3cotqhvgwk0n105gyfe1cqg9m.htm&lt;/A&gt;.&amp;nbsp; The docs don't call it a bug, but instead a "problem that can arise"&amp;nbsp; &amp;nbsp;: )&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2024 10:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937345#M368305</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-07-27T10:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: a question on how to call a macro variable within a macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937425#M368344</link>
      <description>&lt;P&gt;First of all you need no quotes and commas:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro m_test(
 keyN= /* numeric key variables */
,keyC= /* character key variables */
);
data test;

  if 0 then set sashelp.cars;
  length FAKE_NUM 8 FAKE_CHAR $ 1;
  drop FAKE_NUM FAKE_CHAR;
  array a[*] FAKE_NUM &amp;amp;keyN.;
  array b[*] $ FAKE_CHAR &amp;amp;keyC.;

  declare hash found_keys();
    do i = 2 to dim(A);
      found_keys.definekey(vname(A[i]));
    end;
    do i = 2 to dim(B);
      found_keys.definekey(vname(B[i]));
    end;
    found_keys.definedone();

  do while (not done);
    set sashelp.cars end=done;
      rc=found_keys.add(); 
      output;              
  end;

  rc = found_keys.output(dataset:"test123");
  stop;
run;
%mend;

%m_test(keyC=Make Model, keyN=Invoice);

%m_test(keyN=Invoice);

%m_test(keyC=Make Model);

%m_test(keyC=Make);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 11:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-question-on-how-to-call-a-macro-variable-within-a-macro/m-p/937425#M368344</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-07-29T11:13:53Z</dc:date>
    </item>
  </channel>
</rss>

