<?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 How to delete observations with a date that is outside a week of another week in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observations-with-a-date-that-is-outside-a-week-of/m-p/819080#M323329</link>
    <description>&lt;P&gt;Hello, I need to delete observations that have an activity session outside of 1 week from admit or discharge.&amp;nbsp; My data look like the following:&lt;/P&gt;&lt;P&gt;(ID=subject, adate= admission date, ddate= discharge date, actdate= activity session date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;adate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actdate&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/11/2021&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/9/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/28/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/15/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;adate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actdate&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/9/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/28/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 00:05:47 GMT</pubDate>
    <dc:creator>eclaire</dc:creator>
    <dc:date>2022-06-20T00:05:47Z</dc:date>
    <item>
      <title>How to delete observations with a date that is outside a week of another week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observations-with-a-date-that-is-outside-a-week-of/m-p/819080#M323329</link>
      <description>&lt;P&gt;Hello, I need to delete observations that have an activity session outside of 1 week from admit or discharge.&amp;nbsp; My data look like the following:&lt;/P&gt;&lt;P&gt;(ID=subject, adate= admission date, ddate= discharge date, actdate= activity session date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;adate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actdate&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/11/2021&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/9/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/28/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/15/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;adate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ddate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actdate&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; 1/3/2021&amp;nbsp; &amp;nbsp;1/30/2021&amp;nbsp; &amp;nbsp;1/9/2021&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; 1/4/2021&amp;nbsp; &amp;nbsp;1/29/2021&amp;nbsp; &amp;nbsp;1/28/2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 00:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observations-with-a-date-that-is-outside-a-week-of/m-p/819080#M323329</guid>
      <dc:creator>eclaire</dc:creator>
      <dc:date>2022-06-20T00:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observations with a date that is outside a week of another week</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observations-with-a-date-that-is-outside-a-week-of/m-p/819103#M323342</link>
      <description>&lt;P&gt;No observation satisfies your condition, as in all either the adate or the ddate are more than one week from actdate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or did you mean: actdate must be between one week before adate and one week after ddate?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 07:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-delete-observations-with-a-date-that-is-outside-a-week-of/m-p/819103#M323342</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-20T07:03:34Z</dc:date>
    </item>
  </channel>
</rss>

