<?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 filter dates between two specific dates in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142706#M28581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 11pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 11pt;"&gt;I assumed you need to subset the data based on regular interval and this interval might change over a period of time...so i belive rather than extract the specific year or date information, let's modified in such a way that you can subset based on any dates...All you need to change the dates in HAVE Dataset only...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;informat&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; st_date ed_date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; st_date ed_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;"st_date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;,st_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;"ed_date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;,ed_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;cards4&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 11pt;"&gt;01/01/2005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 11pt;"&gt;12/31/2005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; sales_date between &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;st_date.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; and &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;ed_date.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;-Urvish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 12:35:03 GMT</pubDate>
    <dc:creator>UrvishShah</dc:creator>
    <dc:date>2014-01-27T12:35:03Z</dc:date>
    <item>
      <title>How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142699#M28574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;I have a large data set that I need to subset the data set between two specific dates. I would need to get the sales data only from 01/01/2005 to 12/31/2005.&lt;/P&gt;&lt;P&gt;Data set name: sales&lt;/P&gt;&lt;P&gt;variable name: sales_date&lt;/P&gt;&lt;P&gt;variable name: sold_item&lt;/P&gt;&lt;P&gt;variable name: quantity&lt;/P&gt;&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;P&gt;sales_date | sold_item | quantity&lt;/P&gt;&lt;P&gt;12/24/2003 | printer | 233&lt;/P&gt;&lt;P&gt;11/10/2005 | printer | 130&lt;/P&gt;&lt;P&gt;07/24/2005 | phone | 256&lt;/P&gt;&lt;P&gt;09/26/2005 | ipad | 239&lt;/P&gt;&lt;P&gt;01/24/2006 | ipad | 542&lt;/P&gt;&lt;P&gt;01/17/2006 | notebook | 328&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rogerge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 06:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142699#M28574</guid>
      <dc:creator>Roger</dc:creator>
      <dc:date>2014-01-16T06:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142700#M28575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your requirement following Is the Solution. Pls let me know if I Am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Chk;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length sales_date sold_item $ 50;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines dlm="|" dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input sales_date $&amp;nbsp; sold_item&amp;nbsp; $ quantity ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if scan(sales_date,3,"/") = "2005" then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;12/24/2003 | printer | 233&lt;/P&gt;&lt;P&gt;11/10/2005 | printer | 130&lt;/P&gt;&lt;P&gt;07/24/2005 | phone | 256&lt;/P&gt;&lt;P&gt;09/26/2005 | ipad | 239&lt;/P&gt;&lt;P&gt;01/24/2006 | ipad | 542&lt;/P&gt;&lt;P&gt;01/17/2006 | notebook | 328&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dishant Parikh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 06:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142700#M28575</guid>
      <dc:creator>dishant</dc:creator>
      <dc:date>2014-01-16T06:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142701#M28576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you data is in a SAS/RDBMS table, and the date are in date format, this is the way of formulating your filter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where sales_date between '01Jan2005'd and '31dec2005'd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your are commonly interested in whole years you cold try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where year(sales_date) = 2005&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if your table is large, and the sales_date columns is indexed, using a function on that column will prevent the optimizer to use the index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142701#M28576</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-01-16T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142702#M28577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried with Proc sql with where clause includeing between and and.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like : where sales_date between&amp;nbsp; 12/24/2003 and 07/24/2005 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Uma Shanker Saini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142702#M28577</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2014-01-16T08:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142703#M28578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This always works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if '31Dec2005'd &amp;lt;= sales_date &amp;lt;= '01Jan2005'd;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Senzo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 09:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142703#M28578</guid>
      <dc:creator>Senzo_DL</dc:creator>
      <dc:date>2014-01-16T09:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142704#M28579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&amp;nbsp;&amp;nbsp;&amp;nbsp; You probably mean:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if '01Jan2005'd &amp;lt;= sales_date &amp;lt;= '31Dec2005'd;&amp;nbsp;&amp;nbsp; / Br Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 17:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142704#M28579</guid>
      <dc:creator>AndersS</dc:creator>
      <dc:date>2014-01-18T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142705#M28580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@AndersS&lt;/P&gt;&lt;P&gt;Yes I meant that, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 12:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142705#M28580</guid>
      <dc:creator>Senzo_DL</dc:creator>
      <dc:date>2014-01-23T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142706#M28581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 11pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #000000; font-size: 11pt;"&gt;I assumed you need to subset the data based on regular interval and this interval might change over a period of time...so i belive rather than extract the specific year or date information, let's modified in such a way that you can subset based on any dates...All you need to change the dates in HAVE Dataset only...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;informat&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; st_date ed_date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; st_date ed_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;"st_date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;,st_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;"ed_date"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;,ed_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;cards4&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 11pt;"&gt;01/01/2005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: #ffffc0; color: black; font-size: 11pt;"&gt;12/31/2005&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; sales_date between &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;st_date.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; and &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;ed_date.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;-Urvish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 12:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/142706#M28581</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2014-01-27T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter dates between two specific dates in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/377665#M90707</link>
      <description>&lt;P&gt;solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data bank;&lt;BR /&gt;input @1 trans_dt date9. @13trans_amt comma7.;&lt;BR /&gt;format trans_dt date9. trans_amt comma8.;&lt;BR /&gt;datalines;&lt;BR /&gt;01jan2017 89,000&lt;BR /&gt;02feb2017 75,000&lt;BR /&gt;03mar2017 96,000&lt;BR /&gt;04apr2017 65,000&lt;BR /&gt;05may2017 10,000&lt;BR /&gt;06jun2017 25,000&lt;BR /&gt;07jul2017 36,000&lt;BR /&gt;08aug2017 32,000&lt;BR /&gt;09sep2017 46,000&lt;BR /&gt;10oct2017 50,000&lt;BR /&gt;11nov2017 31,000&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data trans;&lt;BR /&gt;set bank;&lt;BR /&gt;where trans_dt &amp;gt;= '01Jan2017'd and trans_dt&amp;lt;= '01apr2017'd&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table trans2 as&lt;BR /&gt;select * from bank&lt;BR /&gt;where trans_dt between '01Jan2017'd and '31mar2017'd&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-filter-dates-between-two-specific-dates-in-SAS/m-p/377665#M90707</guid>
      <dc:creator>Sharad_Pujari</dc:creator>
      <dc:date>2017-07-20T07:37:54Z</dc:date>
    </item>
  </channel>
</rss>

