<?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 Date Criteria for Current Date in a SAS EG Query Expression in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354741#M23372</link>
    <description>&lt;P&gt;I'm a new convert from Access and very green on EG. &amp;nbsp;I'm trying a simple query formula where I need records from the past 60 days. &amp;nbsp;The criteria in Access was simply Date()-60. &amp;nbsp;What does the filter look like in a SAS EG query?&lt;/P&gt;</description>
    <pubDate>Sat, 29 Apr 2017 18:43:43 GMT</pubDate>
    <dc:creator>EHittner</dc:creator>
    <dc:date>2017-04-29T18:43:43Z</dc:date>
    <item>
      <title>Date Criteria for Current Date in a SAS EG Query Expression</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354741#M23372</link>
      <description>&lt;P&gt;I'm a new convert from Access and very green on EG. &amp;nbsp;I'm trying a simple query formula where I need records from the past 60 days. &amp;nbsp;The criteria in Access was simply Date()-60. &amp;nbsp;What does the filter look like in a SAS EG query?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 18:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354741#M23372</guid>
      <dc:creator>EHittner</dc:creator>
      <dc:date>2017-04-29T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date Criteria for Current Date in a SAS EG Query Expression</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354742#M23373</link>
      <description>&lt;P&gt;Depends upon whether you are using the GUI. A youtube video shows various ways to select using the GUI:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=rNseN9tGfwM" target="_blank"&gt;https://www.youtube.com/watch?v=rNseN9tGfwM&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, you may only need something like between today() and today()-60&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 18:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354742#M23373</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-29T18:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Criteria for Current Date in a SAS EG Query Expression</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354749#M23375</link>
      <description>&lt;P&gt;Almost identical:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the dataset SASHELP.STOCKS as an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a new query, select the variables you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. On the filter tab, create a new filter, and select an advanced filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Your filter text should be something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;t1.Date &amp;gt;= (today() - 4501)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(this will select all the records with date later than Jan 1, 2005).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Next, then Finish&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Run your query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure the integer you use gets you exactly the dates you want...testing is important!&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 20:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/354749#M23375</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-04-29T20:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Criteria for Current Date in a SAS EG Query Expression</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/355015#M23380</link>
      <description>Worked perfect! Much appreciated!&lt;BR /&gt;</description>
      <pubDate>Mon, 01 May 2017 18:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-Criteria-for-Current-Date-in-a-SAS-EG-Query-Expression/m-p/355015#M23380</guid>
      <dc:creator>EHittner</dc:creator>
      <dc:date>2017-05-01T18:33:33Z</dc:date>
    </item>
  </channel>
</rss>

