<?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 SAS Macro Language in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309703#M66728</link>
    <description>&lt;P&gt;what is the use of macro in sas?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 12:46:59 GMT</pubDate>
    <dc:creator>Anindita</dc:creator>
    <dc:date>2016-11-07T12:46:59Z</dc:date>
    <item>
      <title>SAS Macro Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309703#M66728</link>
      <description>&lt;P&gt;what is the use of macro in sas?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309703#M66728</guid>
      <dc:creator>Anindita</dc:creator>
      <dc:date>2016-11-07T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309705#M66729</link>
      <description>&lt;P&gt;Do you mean how to run a macro? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please be more specific&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309705#M66729</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-11-07T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309707#M66730</link>
      <description>yea, i want to know about the structure and the functions of macro..&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309707#M66730</guid>
      <dc:creator>Anindita</dc:creator>
      <dc:date>2016-11-07T12:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309708#M66731</link>
      <description>&lt;P&gt;The macro language is a pre-processor that allows one to create program code dynamically, equally to the function of the C preprocessor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro statements are acted upon immediately when encountered, the resulting code is then fed on to the regular SAS interpreter for running (procedures) or compiling and executing (data step).&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309708#M66731</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T12:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309710#M66732</link>
      <description>&lt;P&gt;The most comprehensive source for information is the SAS documentation itself, a good starting point for the macro language is here: &lt;A href="https://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p1ccprwibo8gvqn1q6zinvjlzuut.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p1ccprwibo8gvqn1q6zinvjlzuut.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309710#M66732</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-07T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309716#M66733</link>
      <description>&lt;P&gt;There is a ton of material on the macro language in SAS, a quick google search will get you far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/seminars/sas_macros_introduction/" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/seminars/sas_macros_introduction/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is eg a good starting point with a low of simple examples along with a few videos with explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309716#M66733</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-11-07T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Language</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309723#M66734</link>
      <description>&lt;P&gt;Generally speaking from 99% of the examples I have seen it is to obfuscate and complicate code. &amp;nbsp;SAS Base (also known as dataste) is the programming language - this should be the main part to learn and will cover 99% of all encountered needs. &amp;nbsp;It contains all the data structures, functions and such like to manipulate and process data.&lt;/P&gt;
&lt;P&gt;Macro language is an additional tool, used to generate Base SAS code. &amp;nbsp;It does nothing on its own other than generate text. &amp;nbsp;It has no data structures other than text, and it has no procedures/functions other than a couple of basic ones to generate text.&lt;/P&gt;
&lt;P&gt;If you do need to write macro code - maybe for libraries or general code - then you should really be following Software Development Lifecycle mehodology - design the code in a documen first, create a teting plan, create a management plan etc. &amp;nbsp;Then write some code. &amp;nbsp;Don't fall into the "have to" use macro code, or over using it - Base SAS is where you can do almost every task imaginable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also add, in the large majority of cases where macro is used, it is necessary for one of two reasons:&lt;/P&gt;
&lt;P&gt;- Poor data structuring, some examples of which - holding similar data in many different datasets, using data as dataset names/variable names, using wide rather than long format (i.e. using a review type layout, rather than one designed for programming)&lt;/P&gt;
&lt;P&gt;- Lack of understanding of Base SAS, something like using macro to loop over variables when arrays can do that, or generating lots of proc print/report statements rather than using by group processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Language/m-p/309723#M66734</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-07T14:05:58Z</dc:date>
    </item>
  </channel>
</rss>

