<?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: Using Macro function in DO LOOP in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56841#M15902</link>
    <description>Thanks alot!!&lt;BR /&gt;
It works!!</description>
    <pubDate>Tue, 21 Jul 2009 15:42:42 GMT</pubDate>
    <dc:creator>Ken_oy</dc:creator>
    <dc:date>2009-07-21T15:42:42Z</dc:date>
    <item>
      <title>Using Macro function in DO LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56839#M15900</link>
      <description>I created a macro function:  %gcheck(i);&lt;BR /&gt;
and I need to run &lt;BR /&gt;
&lt;BR /&gt;
%gcheck(1);&lt;BR /&gt;
%gcheck(2);&lt;BR /&gt;
%gcheck(3);&lt;BR /&gt;
....&lt;BR /&gt;
%gcheck(1000);&lt;BR /&gt;
&lt;BR /&gt;
how can I do this using DO LOOP?&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!!</description>
      <pubDate>Tue, 21 Jul 2009 15:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56839#M15900</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2009-07-21T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Macro function in DO LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56840#M15901</link>
      <description>To use the %do ... %loop, It must be placed inside another macro:&lt;BR /&gt;
&lt;BR /&gt;
%macro loop_gcheck;&lt;BR /&gt;
&lt;BR /&gt;
%do I=1 %to 1000;&lt;BR /&gt;
%gcheck(&amp;amp;I);&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
%mend loop_gcheck;&lt;BR /&gt;
&lt;BR /&gt;
%loop_gcheck;&lt;BR /&gt;
&lt;BR /&gt;
Check the following Macro tutorial from John Cohen:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/Proceedings/nesug03/bt/bt009.pdf" target="_blank"&gt;http://www.nesug.org/Proceedings/nesug03/bt/bt009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Tue, 21 Jul 2009 15:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56840#M15901</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-21T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Macro function in DO LOOP</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56841#M15902</link>
      <description>Thanks alot!!&lt;BR /&gt;
It works!!</description>
      <pubDate>Tue, 21 Jul 2009 15:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-Macro-function-in-DO-LOOP/m-p/56841#M15902</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2009-07-21T15:42:42Z</dc:date>
    </item>
  </channel>
</rss>

