<?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: DO Loop on list of variables entered via prompt in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238863#M308761</link>
    <description>&lt;P&gt;You just call the macro variable as with any, no need for double ampersands:&lt;/P&gt;
&lt;PRE&gt;%macro MyLoop (sid);
  proc sql;
    title "&amp;amp;SID. Report";
    select StoreName, StoreRevenue
    from Store_Data_Set
    where StoreID="&amp;amp;SID.";
  quit;
  title;
%mend MyLoop;

data _null_;
  i=1;
  do while (scan("&amp;amp;SID_LIST.",i,",") ne "");
    call execute(cats('%MyLoop(',scan("&amp;amp;SID_LIST.",i,","),');'));
    i=i+1;
  end; 
run;
&lt;/PRE&gt;
&lt;P&gt;The call execute generates 1 string of text to call the macro per variable found in sid_list. &amp;nbsp;Thats the trick, you are using the datastep (which is a loop) to do the looping.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 09:28:08 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-12-11T09:28:08Z</dc:date>
    <item>
      <title>DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238583#M308756</link>
      <description>&lt;P&gt;Hello – Using SAS EG 7.1; I’m trying to perform the same set of steps (w/ PROC SQL) based on multiple variables entered via a prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; let’s say I have a table with the following 4 fields:&amp;nbsp; StoreID; StoreName; StoreCity; StoreRevenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are hundreds of StoreIDs in the table; I want to create an individual report showing StoreName and StoreRevenue for each StoreID entered by the user via a prompt called “SID” (user can enter many).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that when entered by the prompt, the variables become SID1, SID2, SID3, etc and the total number entered would be SID_count.&amp;nbsp; But I don’t know how the PROC SQL steps would be included in the following to make it work (or if I’m off base completely).&amp;nbsp; Any advice would be most appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt; MyLoop(SID_count);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do i=&lt;STRONG&gt;1&lt;/STRONG&gt; %to &amp;amp;SID_count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Etc, etc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt; MyLoop;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;EM&gt;MyLoop&lt;/EM&gt;&lt;/STRONG&gt;(&amp;amp;SID_count)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238583#M308756</guid>
      <dc:creator>Orange4</dc:creator>
      <dc:date>2015-12-09T21:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238593#M308757</link>
      <description>&lt;P&gt;It really depends on what you are wanting to display in your reports.&amp;nbsp; If you just want to display the data and the variables StoreName and StoreRevenue for each StoreID entered, you could use proc sql or just a simple proc print.&amp;nbsp; The code would look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro MyLoop(SID_count);

%do i=1 %to &amp;amp;SID_count;
  proc sql;
  title "&amp;amp;&amp;amp;SID&amp;amp;i Report";
  select StoreName, StoreRevenue
  from Store_Data_Set
  where StoreID="&amp;amp;&amp;amp;SID&amp;amp;i";
  quit;
  title;
%end;

%mend MyLoop;

%MyLoop(&amp;amp;SID_count)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Basically, this code would loop through as many times as there are the total number of StoreID's entered, and each time it would produce a report that displays a Title with the StoreID and then the StoreName and StoreRevenue from your data set of all the different stores, but it would filter out only the StoreID requested.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &amp;amp;&amp;amp;SID&amp;amp;i is a macro variable that would resolve to the StoreID.&amp;nbsp; So, for example, in the first iteration i would equal 1, and in this case &amp;amp;&amp;amp;SID&amp;amp;i would resolve to &amp;amp;SID1 (which is the first StoreID variable that was entered according to your explanation) and that would resolve to the actual value of the StoreID that was entered for in the first line.&amp;nbsp; Is this what you are looking for?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238593#M308757</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-09T21:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238612#M308758</link>
      <description>&lt;P&gt;Great!&amp;nbsp; Thank you so much.&amp;nbsp; Worked perfectly in my simple example and in the larger project to which&amp;nbsp;I wanted to apply it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 00:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238612#M308758</guid>
      <dc:creator>Orange4</dc:creator>
      <dc:date>2015-12-10T00:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238652#M308759</link>
      <description>&lt;P&gt;Alternatively, avoiding messy macro language:&lt;/P&gt;
&lt;PRE&gt;%macro MyLoop (sid);
  proc sql;
     ...
  quit;
%mend MyLoop;

data _null_;
  i=1;
  do while (scan("&amp;amp;SID_LIST.",i,",") ne "");
    call execute(cats('%MyLoop(',scan("&amp;amp;SID_LIST.",i,","),');'));
    i=i+1;
  end; 
run;&lt;/PRE&gt;
&lt;P&gt;This has the benefit of not needing to know how many elements, is one simple datastep, and you could do other things, such as entry checking, excluding invalids and so on.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 09:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238652#M308759</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-10T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238797#M308760</link>
      <description>&lt;P&gt;i really like the simplicity here, but i wasn't able to figure out the syntax within the PROC SQL to call the variable as it loops&amp;nbsp;(i.e. with the other solution i was successful using):&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;WHERE t1.StoreID=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;&amp;amp;SID&amp;amp;i"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;Another issue i've just realized: the original solution above fails if only one entry is made in the prompt.&amp;nbsp; I'm guessing i'd have to create an IF statement to deal with that.&amp;nbsp; Not sure if that should start a new thread.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;really appreciate the help here, being new to SAS and to the community.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 22:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238797#M308760</guid>
      <dc:creator>Orange4</dc:creator>
      <dc:date>2015-12-10T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238863#M308761</link>
      <description>&lt;P&gt;You just call the macro variable as with any, no need for double ampersands:&lt;/P&gt;
&lt;PRE&gt;%macro MyLoop (sid);
  proc sql;
    title "&amp;amp;SID. Report";
    select StoreName, StoreRevenue
    from Store_Data_Set
    where StoreID="&amp;amp;SID.";
  quit;
  title;
%mend MyLoop;

data _null_;
  i=1;
  do while (scan("&amp;amp;SID_LIST.",i,",") ne "");
    call execute(cats('%MyLoop(',scan("&amp;amp;SID_LIST.",i,","),');'));
    i=i+1;
  end; 
run;
&lt;/PRE&gt;
&lt;P&gt;The call execute generates 1 string of text to call the macro per variable found in sid_list. &amp;nbsp;Thats the trick, you are using the datastep (which is a loop) to do the looping.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 09:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238863#M308761</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-11T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238895#M308762</link>
      <description>&lt;P&gt;If there's just one StoreID entered, you can create an IF statement looking at the value of SID_Count, and if it equals one, just create the same SQL procedure, but change the &amp;amp;&amp;amp;SID&amp;amp;i to equal &amp;amp;SID1 instead.&amp;nbsp; Then you can have an ELSE statement that has the Do-Loop code.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/238895#M308762</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-12-11T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/241147#M308763</link>
      <description>&lt;P&gt;Ultimately I wasn’t able to get RW9’s suggestion to work; it failed as it couldn’t reconcile "&amp;amp;SID_LIST." in the data step. I wasn’t able to see if/where this variable was being created and I couldn’t figure out if I was just missing an easy adjustment to make it work with my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I did have success with the following (meaning, a report is created for any number of SIDs entered via prompt – including just one):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt; MyLoop(SID_count);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;%do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; i=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;&lt;FONT color="#008080" face="Courier New"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;%to&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; &amp;amp;SID_count;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;proc sql;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"Report Concerning: "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &amp;amp;SID_count = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;SID"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;&amp;amp;SID&amp;amp;i"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select StoreName, StoreRevenue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from Store_Data_Set&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;where StoreID = &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &amp;amp;SID_count = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;SID"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;; &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;&lt;FONT color="#800080"&gt;"&amp;amp;&amp;amp;SID&amp;amp;i"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;&lt;FONT color="#0000ff" face="Courier New"&gt;%end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;FONT color="#000080" face="Courier New"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New"&gt; MyLoop;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;MyLoop&lt;/I&gt;&lt;/STRONG&gt;(&amp;amp;SID_count)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 18:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/241147#M308763</guid>
      <dc:creator>Orange4</dc:creator>
      <dc:date>2015-12-29T18:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: DO Loop on list of variables entered via prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/241155#M308764</link>
      <description>&lt;P&gt;The SID List was referring to the list of values as in "I know that when entered by the prompt, the variables become SID1, SID2, SID3".&amp;nbsp; I assumed this was a list.&amp;nbsp; If it is not then:&lt;/P&gt;
&lt;PRE&gt;%macro MyLoop (sid);
  proc sql;
    title "&amp;amp;SID. Report";
    select StoreName, StoreRevenue
    from Store_Data_Set
    where StoreID="&amp;amp;SID.";
  quit;
  title;
%mend MyLoop;

data _null_;
  call execute('%MyLoop(SID);');
  do i=2 to &amp;amp;SID_Count.;
    call execute(cats('%MyLoop(SID',i,');'));
    i=i+1;
  end; 
run;&lt;/PRE&gt;
&lt;P&gt;Although I dont understand why you are doing it this way in the first place.&amp;nbsp; Surely you can just use a proc report with a by statement and a datastep (this is unchecked as not at work):&lt;/P&gt;
&lt;PRE&gt;data report_data;
  set have (where=(storeid in (&amp;lt;the list of variables&amp;gt;));
run;
proc report data=report_data;
  by storeid;
  title "This is for store id #byval1";
  columns _all_;
...
run;&lt;/PRE&gt;
&lt;P&gt;No need for macros or sql?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 20:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DO-Loop-on-list-of-variables-entered-via-prompt/m-p/241155#M308764</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-29T20:09:10Z</dc:date>
    </item>
  </channel>
</rss>

