title: Running a SAS macro for every day in a range of dates
body: <p>I am an intermediate user of SAS, but I have limited knowledge of arrays and macros.  I have a set of code that prompts the user to enter a date range.  For example, the user might enter December 1, 2015-December 5,2015.  For simplicity, imagine the code looks like:</p>
  
  <pre><code>data new; set old; 
  if x1='December 1, 2015'd then y="TRUE";
  run;
  </code></pre>
  
  <p>I need to run this same code for every day in the date prompt range, so for the 1st, 2nd, 3rd, 4th, and 5th.  My thought was to create an array that contains the dates, but I am not sure how I would do that.  My second thought was to create a macro, but I can't figure out out to feed a list through a macro.</p>
  
  <p>Also, just FYI, the code is a lot longer and more complicated than just a data step.</p>