title: How to loop sas macro by date?
body: <p>I defined a macro which get data of 1 day.
  For example</p>
  
  <pre><code>%macro getOneday(stnd_d);
  data _null_;
      call symputx('numdate',&amp;stnd_d.);
  run;
  data oneday&amp;numdate;
     set alldata;
     where stdd = &amp;stnd_d;
  run;
  %mend;
  </code></pre>
  
  <p>Now I want to loop that macro from start date to end date.</p>
  
  <pre><code> data _null_;
      do i = '01mar2015'd to '30mar2015'd;
      %getOneday(stnd_d = i)
      end;
   run;
  </code></pre>
  
  <p>I don't know how can I pass the date expression value to %getOneday() as a parameter.</p>