<?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 PARAMETERS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489381#M127773</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes I saw many similar questions in the prep paper, so can you tell me the mechanism about it?&lt;/P&gt;&lt;P&gt;In the macro parameter,,,var is local, once it is assigned a value(in the compile stage), even when you call (execute)the macro meanwhile assign a new value(to the same var), it won't work right? The value won't be replaced?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 19:45:40 GMT</pubDate>
    <dc:creator>Karen_sas11</dc:creator>
    <dc:date>2018-08-23T19:45:40Z</dc:date>
    <item>
      <title>MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489286#M127726</link>
      <description>&lt;P&gt;Good morning Everyone,&lt;/P&gt;&lt;P&gt;I have a quick question here, assume there is a macro parameter and the var is defined, when I call the macro and I assign a new value to the same var, what it would happen?&lt;/P&gt;&lt;P&gt;Let's take this for example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro houses(dsn=houses, sub=RANCH);
data &amp;amp;dsn;
set sasuser.houses; if style="&amp;amp;sub";
run;
%mend;
%houses (sub=SPLIT);
%houses (dsn=ranch);
%houses (sub=TWOSTORY);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so what's the most recent data set did I create?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 14:47:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489286#M127726</guid>
      <dc:creator>Karen_sas11</dc:creator>
      <dc:date>2018-08-23T14:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489289#M127728</link>
      <description>&lt;P&gt;&lt;SPAN&gt;so what's the most recent data set did I create?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;should be the result of&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%houses&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;sub&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;TWOSTORY&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i.e&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; houses&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; sasuser&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;houses&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"TWOSTORY"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 14:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489289#M127728</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-23T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489290#M127729</link>
      <description>&lt;P&gt;Any reason to not run it and check the log to see what the output is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207067"&gt;@Karen_sas11&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Good morning Everyone,&lt;/P&gt;
&lt;P&gt;I have a quick question here, assume there is a macro parameter and the var is defined, when I call the macro and I assign a new value to the same var, what it would happen?&lt;/P&gt;
&lt;P&gt;Let's take this for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro houses(dsn=houses, sub=RANCH);
data &amp;amp;dsn;
set sasuser.houses; if style="&amp;amp;sub";
run;
%mend;
%houses (sub=SPLIT);
%houses (dsn=ranch);
%houses (sub=TWOSTORY);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so what's the most recent data set did I create?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 14:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489290#M127729</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-23T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489293#M127730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207067"&gt;@Karen_sas11&lt;/a&gt;&amp;nbsp;is it some quiz or certification question? or you are seeking or trying to make the distinction between macro compilation and execution. I think it;s the latter&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 15:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489293#M127730</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-23T15:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489297#M127732</link>
      <description>SASUSER.HOUSES is used in the training courses and prep material.</description>
      <pubDate>Thu, 23 Aug 2018 15:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489297#M127732</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-23T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489301#M127733</link>
      <description>&lt;P&gt;Aah ok. I didn't know that. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 15:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489301#M127733</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-23T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489381#M127773</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Yes I saw many similar questions in the prep paper, so can you tell me the mechanism about it?&lt;/P&gt;&lt;P&gt;In the macro parameter,,,var is local, once it is assigned a value(in the compile stage), even when you call (execute)the macro meanwhile assign a new value(to the same var), it won't work right? The value won't be replaced?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489381#M127773</guid>
      <dc:creator>Karen_sas11</dc:creator>
      <dc:date>2018-08-23T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO PARAMETERS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489390#M127778</link>
      <description>&lt;P&gt;I think of it this way, if you create a macro with parameters in the definition, those are default values. If you call the macro with different parameters, then it overrides the default values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207067"&gt;@Karen_sas11&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Yes I saw many similar questions in the prep paper, so can you tell me the mechanism about it?&lt;/P&gt;
&lt;P&gt;In the macro parameter,,,var is local, once it is assigned a value(in the compile stage), even when you call (execute)the macro meanwhile assign a new value(to the same var), it won't work right? The value won't be replaced?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO-PARAMETERS/m-p/489390#M127778</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-23T20:06:25Z</dc:date>
    </item>
  </channel>
</rss>

