<?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 and macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852282#M336915</link>
    <description>Hi: This paper may help you get started understanding SAS Macro program parameters and how to define them and how to use them: &lt;A href="https://support.sas.com/resources/papers/proceedings13/120-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/120-2013.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
    <pubDate>Thu, 05 Jan 2023 14:03:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-01-05T14:03:40Z</dc:date>
    <item>
      <title>Macro and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852233#M336895</link>
      <description>If I create macro e.g. %macro(source, file,ID), does it automatically define source, file and id as macro variable as I see &amp;amp;source and dont see a statement declarinf source as macro variable..</description>
      <pubDate>Thu, 05 Jan 2023 04:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852233#M336895</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-01-05T04:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852234#M336896</link>
      <description>&lt;P&gt;You really need to learn how to use the SAS documentation!&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1nypovnwon4uyn159rst8pgzqrl.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p1nypovnwon4uyn159rst8pgzqrl.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 04:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852234#M336896</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-05T04:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852235#M336897</link>
      <description>&lt;P&gt;If you DEFINE a macro name MYMACRO with a statement like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymacro(source, file,ID);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then the macro's parameters ( SOURCE, FILE and ID) will all be LOCAL macro variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try it:&lt;/P&gt;
&lt;PRE&gt;943  %macro mymacro(source, file,ID);
944  %put _local_;
945  %mend mymacro;
946  %mymacro;
MYMACRO FILE
MYMACRO ID
MYMACRO SOURCE
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 05:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852235#M336897</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-05T05:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852282#M336915</link>
      <description>Hi: This paper may help you get started understanding SAS Macro program parameters and how to define them and how to use them: &lt;A href="https://support.sas.com/resources/papers/proceedings13/120-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/120-2013.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 05 Jan 2023 14:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852282#M336915</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-01-05T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro and macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852301#M336929</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&amp;nbsp;dont see a statement declarinf source as macro variable..&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Variables and macro variables do not have to be declared in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 16:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-and-macro-variable/m-p/852301#M336929</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-05T16:28:50Z</dc:date>
    </item>
  </channel>
</rss>

