<?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: Parcing Param List to Loop Macro in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Parcing-Param-List-to-Loop-Macro/m-p/6374#M2170</link>
    <description>Got It. &lt;BR /&gt;
&lt;BR /&gt;
%Macro ListParms /PARMBUFF;&lt;BR /&gt;
%let counter = 1; &lt;BR /&gt;
%let Parm = %scan(&amp;amp;syspbuff,&amp;amp;counter);&lt;BR /&gt;
%do %while(&amp;amp;Parm ne);&lt;BR /&gt;
   %put &amp;amp;Parm;&lt;BR /&gt;
   %let counter=%eval(&amp;amp;counter+1);&lt;BR /&gt;
   %let Parm=%scan(&amp;amp;syspbuff,&amp;amp;counter);&lt;BR /&gt;
%end;&lt;BR /&gt;
%Mend ListParms;&lt;BR /&gt;
&lt;BR /&gt;
%ListParms(Param1, Param2, Param3,...);&lt;BR /&gt;
&lt;BR /&gt;
This example was almost word for word in the Help files under %Macro...Sorry.</description>
    <pubDate>Tue, 15 Jan 2008 16:17:59 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-15T16:17:59Z</dc:date>
    <item>
      <title>Parcing Param List to Loop Macro</title>
      <link>https://communities.sas.com/t5/Developers/Parcing-Param-List-to-Loop-Macro/m-p/6373#M2169</link>
      <description>An extremely simplified version of a macro and my intended log output is stated below.  I am not sure if SAS has the capablilty to loop/parce through parameters like this and execute multiple times based on that list of parameters but I'm hoping someone here can help.  What would I need to change in my macro to do this, if possible?&lt;BR /&gt;
&lt;BR /&gt;
%Macro ListParms(Param);&lt;BR /&gt;
   %put &amp;amp;Param;&lt;BR /&gt;
%mend ListParms;&lt;BR /&gt;
&lt;BR /&gt;
%ListParms(Param1, Param2, Param3, ...);&lt;BR /&gt;
&lt;BR /&gt;
Log Output:&lt;BR /&gt;
Param1&lt;BR /&gt;
Param2&lt;BR /&gt;
Param3&lt;BR /&gt;
&lt;BR /&gt;
T.I.A.</description>
      <pubDate>Tue, 15 Jan 2008 15:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Parcing-Param-List-to-Loop-Macro/m-p/6373#M2169</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-15T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parcing Param List to Loop Macro</title>
      <link>https://communities.sas.com/t5/Developers/Parcing-Param-List-to-Loop-Macro/m-p/6374#M2170</link>
      <description>Got It. &lt;BR /&gt;
&lt;BR /&gt;
%Macro ListParms /PARMBUFF;&lt;BR /&gt;
%let counter = 1; &lt;BR /&gt;
%let Parm = %scan(&amp;amp;syspbuff,&amp;amp;counter);&lt;BR /&gt;
%do %while(&amp;amp;Parm ne);&lt;BR /&gt;
   %put &amp;amp;Parm;&lt;BR /&gt;
   %let counter=%eval(&amp;amp;counter+1);&lt;BR /&gt;
   %let Parm=%scan(&amp;amp;syspbuff,&amp;amp;counter);&lt;BR /&gt;
%end;&lt;BR /&gt;
%Mend ListParms;&lt;BR /&gt;
&lt;BR /&gt;
%ListParms(Param1, Param2, Param3,...);&lt;BR /&gt;
&lt;BR /&gt;
This example was almost word for word in the Help files under %Macro...Sorry.</description>
      <pubDate>Tue, 15 Jan 2008 16:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Parcing-Param-List-to-Loop-Macro/m-p/6374#M2170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-15T16:17:59Z</dc:date>
    </item>
  </channel>
</rss>

