<?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: Passing Macro Variables From Macro to Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437323#M108868</link>
    <description>&lt;P&gt;That should work fine, but I'm partial to CALL EXECUTE these days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something there not working?&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/5059"&gt;@DavidPhillips2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I’m googing how to pass a variable from one macro to another and having a hard time finding good documentation on it.&amp;nbsp; Concept code is below:&lt;/P&gt;
&lt;P&gt;Please advise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro createYearsOuter(yearVar);&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'S');&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'F');&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%createYearsOuter(1617);&lt;BR /&gt;%createYearsOuter(1516);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 20:24:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-14T20:24:44Z</dc:date>
    <item>
      <title>Passing Macro Variables From Macro to Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437319#M108866</link>
      <description>&lt;P&gt;I’m googing how to pass a variable from one macro to another and having a hard time finding good documentation on it.&amp;nbsp; Concept code is below:&lt;/P&gt;
&lt;P&gt;Please advise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro createYearsOuter(yearVar);&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'S');&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'F');&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%createYearsOuter(1617);&lt;BR /&gt;%createYearsOuter(1516);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437319#M108866</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2018-02-14T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Macro Variables From Macro to Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437323#M108868</link>
      <description>&lt;P&gt;That should work fine, but I'm partial to CALL EXECUTE these days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something there not working?&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/5059"&gt;@DavidPhillips2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I’m googing how to pass a variable from one macro to another and having a hard time finding good documentation on it.&amp;nbsp; Concept code is below:&lt;/P&gt;
&lt;P&gt;Please advise:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro createYearsOuter(yearVar);&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'S');&lt;BR /&gt; %CreateYears(&amp;amp;yearVar, 'F');&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%createYearsOuter(1617);&lt;BR /&gt;%createYearsOuter(1516);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437323#M108868</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-14T20:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Macro Variables From Macro to Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437326#M108870</link>
      <description>&lt;P&gt;Reeza, thanks for pointing out that the code works.&amp;nbsp; I thought it wasn't due to a different error.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-Macro-Variables-From-Macro-to-Macro/m-p/437326#M108870</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2018-02-14T20:32:09Z</dc:date>
    </item>
  </channel>
</rss>

