<?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: Finding a Date within a range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298771#M62885</link>
    <description>&lt;P&gt;Sure. How do you want to deal with multiple records per ID? Also, is it possible to have missing values? If so, the logic would need to be adjusted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if date_start &amp;lt;= "01Oct2014"d &amp;lt;= date_end then coverage=1;
else coverage=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Sep 2016 19:34:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-15T19:34:05Z</dc:date>
    <item>
      <title>Finding a Date within a range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298769#M62883</link>
      <description>&lt;P&gt;I'm trying to figure out a way of determing if a particular date is within a date range. &amp;nbsp;For example in the dataset below. &amp;nbsp;I want to see if Person ID 1 was covered on&amp;nbsp;Oct 1, 2014. &amp;nbsp; Is there an easy way to figure&amp;nbsp;this out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Person ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date Begin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date End &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Program&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 09/30/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AD&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11/01/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12/31/2014 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298769#M62883</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2016-09-15T19:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a Date within a range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298771#M62885</link>
      <description>&lt;P&gt;Sure. How do you want to deal with multiple records per ID? Also, is it possible to have missing values? If so, the logic would need to be adjusted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if date_start &amp;lt;= "01Oct2014"d &amp;lt;= date_end then coverage=1;
else coverage=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298771#M62885</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-15T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a Date within a range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298773#M62887</link>
      <description>&lt;P&gt;Thank you! &amp;nbsp;This worked out perfectly!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-a-Date-within-a-range/m-p/298773#M62887</guid>
      <dc:creator>einstein</dc:creator>
      <dc:date>2016-09-15T19:49:09Z</dc:date>
    </item>
  </channel>
</rss>

