<?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 variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497907#M132151</link>
    <description>&lt;P&gt;In this trivial example, the macro variable does nothing that you couldn't do better without the macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other examples, macro variables allow code to be dynamic, and change as needed without the human programmer having to re-write or re-code large portions of text.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 17:05:02 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-09-21T17:05:02Z</dc:date>
    <item>
      <title>macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497904#M132149</link>
      <description>&lt;P&gt;why couldnt i have just done age=13 instead of age=&amp;amp;age? what is the purpose of macro variables?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-21 at 9.48.12 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23450iD33C1E8389E89D4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-09-21 at 9.48.12 AM.png" alt="Screen Shot 2018-09-21 at 9.48.12 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 16:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497904#M132149</guid>
      <dc:creator>clqa</dc:creator>
      <dc:date>2018-09-21T16:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497907#M132151</link>
      <description>&lt;P&gt;In this trivial example, the macro variable does nothing that you couldn't do better without the macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other examples, macro variables allow code to be dynamic, and change as needed without the human programmer having to re-write or re-code large portions of text.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497907#M132151</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-21T17:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497908#M132152</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/234925"&gt;@clqa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;why couldnt i have just done age=13 instead of age=&amp;amp;age? what is the purpose of macro variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The purpose of macro variables is character substitution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497908#M132152</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-09-21T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497926#M132162</link>
      <description>Think about a bigger program where you have to reference age in lots of places. In this example, it references age in 2 spots. Using a macro variable instead means if you need to change the age, you only need to do it in one location. It also prevents you from accidentally not updating the age in one of the locations in your code.</description>
      <pubDate>Fri, 21 Sep 2018 17:44:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/497926#M132162</guid>
      <dc:creator>bobpep212</dc:creator>
      <dc:date>2018-09-21T17:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/498009#M132204</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is always more than one way to do something.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens when you want to do it for each age in the data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/234925"&gt;@clqa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;why couldnt i have just done age=13 instead of age=&amp;amp;age? what is the purpose of macro variables?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-21 at 9.48.12 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23450iD33C1E8389E89D4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-09-21 at 9.48.12 AM.png" alt="Screen Shot 2018-09-21 at 9.48.12 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 00:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable/m-p/498009#M132204</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-22T00:14:59Z</dc:date>
    </item>
  </channel>
</rss>

