<?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: Identifying activity within previous encounter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identifying-activity-within-previous-encounter/m-p/705943#M216632</link>
    <description>&lt;P&gt;Please post data in usable form using the variable names you are using in the description.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 06:24:46 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-12-15T06:24:46Z</dc:date>
    <item>
      <title>Identifying activity within previous encounter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-activity-within-previous-encounter/m-p/705838#M216576</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;I want to be able to flag those individuals who have multiple encounters and a previous encounter falls within a certain group, but only if it happens within a specified time frame (I am able to calculate the time, I'm just trying to illustrate the relationship.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;Here is an example. For ID 1234 there are two encounters, where the first is a type 1 and the second encounter happened at day 7. How can I loop the second encounter back to the previous (7-Jul-2020) encounter to confirm that encounter is a type 1 and therefore should fall into the bucket?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Arial','sans-serif'; color: #333333;"&gt;I don't care about ID 5656 because none of them fall into type 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 15.75pt; background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;Date&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;Group&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;delta&lt;/TD&gt;
&lt;TD width="64" class="xl65" style="border-left: none; width: 48pt;"&gt;Bucket&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl68" style="height: 15.0pt; border-top: none;"&gt;1234&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;7-Jul-20&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl68" style="height: 15.0pt; border-top: none;"&gt;1234&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;14-Jul-20&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;5656&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;7-Jul-20&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;5656&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;14-Jul-20&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;
&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;8879&lt;/TD&gt;
&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;7-Jul-20&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl68" style="height: 15.0pt; border-top: none;"&gt;8879&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;14-Jul-20&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;
&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl68" style="height: 15.0pt; border-top: none;"&gt;8879&lt;/TD&gt;
&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;21-Jul-20&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;
&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 14 Dec 2020 20:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-activity-within-previous-encounter/m-p/705838#M216576</guid>
      <dc:creator>a_zacMD</dc:creator>
      <dc:date>2020-12-14T20:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying activity within previous encounter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-activity-within-previous-encounter/m-p/705943#M216632</link>
      <description>&lt;P&gt;Please post data in usable form using the variable names you are using in the description.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 06:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-activity-within-previous-encounter/m-p/705943#M216632</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-15T06:24:46Z</dc:date>
    </item>
  </channel>
</rss>

