<?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: how to run data for past N days in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-data-for-past-N-days/m-p/443777#M111047</link>
    <description>&lt;PRE&gt;%let numdays=3;

data dataforlastdays;
  set maindata;
  where applicationdate &amp;gt;= today() - &amp;amp;numdays.;
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Mar 2018 14:58:30 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-03-08T14:58:30Z</dc:date>
    <item>
      <title>how to run data for past N days</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-data-for-past-N-days/m-p/443773#M111045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help me with this issue?&amp;nbsp; Now I have the coding to run the data based on previous day, what I have is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; APPCATIONDATE = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%eval&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(today())-1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;How to change it to past N days, for example I want the past 3 days data or 5 days data?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thank you very much.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-data-for-past-N-days/m-p/443773#M111045</guid>
      <dc:creator>septemberbulb</dc:creator>
      <dc:date>2018-03-08T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to run data for past N days</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-data-for-past-N-days/m-p/443777#M111047</link>
      <description>&lt;PRE&gt;%let numdays=3;

data dataforlastdays;
  set maindata;
  where applicationdate &amp;gt;= today() - &amp;amp;numdays.;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Mar 2018 14:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-data-for-past-N-days/m-p/443777#M111047</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-08T14:58:30Z</dc:date>
    </item>
  </channel>
</rss>

