<?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 Repeat a macro that has many parameters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102248#M21381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a macro "marc" that has two parameters. I want to run it with many different number for each parameter. I tried this, but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let years1= 2006 2007 2008 2009;&lt;/P&gt;&lt;P&gt;%Let years2= 2007 2008 2009 2010;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _Null_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain years1 "&amp;amp;years1" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain years2 "&amp;amp;years2" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do k = 1 to 4 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usevar1 = scan (years1, k) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usevar2 = scan (years2, k) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%Let usevar1 = ' || usevar1 || ';') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%Let usevar2 = ' || usevar2 || ';') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%macr (&amp;amp;usevar1 , &amp;amp;usevar2) ;') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End ;&lt;/P&gt;&lt;P&gt;Run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing that this works,:&lt;/P&gt;&lt;P&gt;%macr(2006,2007);&lt;/P&gt;&lt;P&gt;%macr(2007,2008);&lt;/P&gt;&lt;P&gt;%macr(2008,2009); &lt;/P&gt;&lt;P&gt;%macr(2009,2010);&lt;/P&gt;&lt;P&gt;I guess the problem is not the macro, but the way I've called it. Do you see if there is any problem with the first lines? I'm not used to that kind of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 21:44:45 GMT</pubDate>
    <dc:creator>Demographer</dc:creator>
    <dc:date>2012-12-17T21:44:45Z</dc:date>
    <item>
      <title>Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102248#M21381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a macro "marc" that has two parameters. I want to run it with many different number for each parameter. I tried this, but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let years1= 2006 2007 2008 2009;&lt;/P&gt;&lt;P&gt;%Let years2= 2007 2008 2009 2010;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _Null_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain years1 "&amp;amp;years1" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Retain years2 "&amp;amp;years2" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do k = 1 to 4 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usevar1 = scan (years1, k) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usevar2 = scan (years2, k) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%Let usevar1 = ' || usevar1 || ';') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%Let usevar2 = ' || usevar2 || ';') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call execute ('%macr (&amp;amp;usevar1 , &amp;amp;usevar2) ;') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End ;&lt;/P&gt;&lt;P&gt;Run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing that this works,:&lt;/P&gt;&lt;P&gt;%macr(2006,2007);&lt;/P&gt;&lt;P&gt;%macr(2007,2008);&lt;/P&gt;&lt;P&gt;%macr(2008,2009); &lt;/P&gt;&lt;P&gt;%macr(2009,2010);&lt;/P&gt;&lt;P&gt;I guess the problem is not the macro, but the way I've called it. Do you see if there is any problem with the first lines? I'm not used to that kind of code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 21:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102248#M21381</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2012-12-17T21:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102249#M21382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you named your macro MACR,&lt;/P&gt;&lt;P&gt;Assuming you always want year and year+1 as the parameter values to pass then this gets closer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do year = 2006 to 2009;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year2= year+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute ('%macr(' || year ||','|| year2||')');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 23:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102249#M21382</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-17T23:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102250#M21383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank, but it still doesn't work. The error 22-322 occurs. I think when I call the number that way, there is a problem with the numeric/string format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 00:23:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102250#M21383</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2012-12-18T00:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102251#M21384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your code/log, the following should have worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data _null_;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do year = 2006 to 2009;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year2= year+1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute ('%macr(' || years1 ||','|| years2||')');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 01:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102251#M21384</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-18T01:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102252#M21385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty close. There is no need to assign macro variables external to the macro calls.&amp;nbsp; No need for RETAIN as you are only executing the data step once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let years1= 2006 2007 2008 2009;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%let years2= 2007 2008 2009 2010;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; years1 = "&amp;amp;years1" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; years2 = "&amp;amp;years2" ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; do k = 1 to countw(years1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute ( '%macr(' || scan(years1,k) || ',' || scan(years2,k) || ');' ) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Another method is to write the code to a file instead of using CALL EXECUTE. This is much easier to debug as you can view the file to confirm you have generated the code properly before you execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;filename code temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; file code ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; do year1 = &lt;SPAN style="font-family: 'courier new', courier; background-color: #ffffff;"&gt;2006 ,2007 ,2008 ,2009&lt;/SPAN&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year2 = year1 + 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '%macr(' year1 ',' year2 ');' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; end ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%include code / source2 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 01:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102252#M21385</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-18T01:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102253#M21386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another method:&amp;nbsp; write your own macro that contains a loop.&amp;nbsp; From your original program, it seems you are willing to hard-code the values that should appear in a loop.&amp;nbsp; In that case, here is a reasonably simple alternative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %local year;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do year = 2006 %to 2009;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %macr (&amp;amp;year, %eval(&amp;amp;year+1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;%mend loop;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't show the definition of %macr, so we can't tell if it contains only DATA and PROC steps, or if it also contains macro language.&amp;nbsp; If it does contain macro language, any loops generated by CALL EXECUTE become very tricky.&amp;nbsp; The basic idea is that any macro language generated by CALL EXECUTE runs immediately (before the DATA _NULL_ step ends) but any DATA and PROC steps stack up and wait until the DATA _NULL_ step is over.&amp;nbsp; While CALL EXECUTE can be a life saver, it does have its quirks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 03:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102253#M21386</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-12-18T03:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat a macro that has many parameters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102254#M21387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't post the definition of the macro because it's much too huge (maybe 1000 lines). Moreover, you point the problem: it also contains macro language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 03:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-a-macro-that-has-many-parameters/m-p/102254#M21387</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2012-12-18T03:54:45Z</dc:date>
    </item>
  </channel>
</rss>

