<?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: Min and max overlapping two date time points in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244079#M56006</link>
    <description>Sorry forgot to mention that i need min and max for example if we have 3 or 4  entries same id same number  get the min and max from date time that falls within an hour of min an max longer than hr I will exclude it ...after that I would like to see if the min and max  date time field overlaps with the other number but same id ... thanks again</description>
    <pubDate>Sun, 17 Jan 2016 20:23:49 GMT</pubDate>
    <dc:creator>BETO</dc:creator>
    <dc:date>2016-01-17T20:23:49Z</dc:date>
    <item>
      <title>Min and max overlapping two date time points</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244049#M55997</link>
      <description>&lt;P&gt;Hi I have a table that I need to determine the min and max time of 2 or 3 data time points...that is limited within hour of each point if it's greater I excluded&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my data looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id. &amp;nbsp; &amp;nbsp; Number. &amp;nbsp; &amp;nbsp; &amp;nbsp;Start time. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End time&lt;/P&gt;
&lt;P&gt;1a. &amp;nbsp; &amp;nbsp; &amp;nbsp; 23. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/16. 11:01:00. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16 11:05:11&lt;/P&gt;
&lt;P&gt;1a. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16 11:02:00. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16 11:06:16&lt;/P&gt;
&lt;P&gt;1a. &amp;nbsp; &amp;nbsp; &amp;nbsp; 25. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16. 12:00:00. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/0116 12:07:00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what I need here is just number 23 and 24 sine they over lap the 25 it exceeds the hour from the first 2 ....I would need 23 and 24 in one roll&lt;/P&gt;
&lt;P&gt;id. Number. Start time. End time. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Id. &amp;nbsp;Number. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Start time. &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; end time&amp;nbsp;&lt;BR /&gt;1a. 23. 01/01/16. 11:01:00. 01/01/16 11:05:11. &amp;nbsp;1a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/16. 11:02:00. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16 11:06:16&lt;BR /&gt;&lt;BR /&gt;I would need the min start time of number and max end time from number first&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 08:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244049#M55997</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2016-01-17T08:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Min and max overlapping two date time points</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244068#M56003</link>
      <description>&lt;P&gt;Can you have multiple overlaps?&lt;/P&gt;
&lt;P&gt;What happens when there's no overlaps?&lt;/P&gt;
&lt;P&gt;What do you want the final dataset to look like for all records, include only overlaps?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 18:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244068#M56003</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-17T18:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Min and max overlapping two date time points</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244076#M56004</link>
      <description>Yes I'm grouping it by Id. So if there could be up to 4 overlap if there is no overlap than I don't need that I just need where there was overlap ...&lt;BR /&gt;For example out put&lt;BR /&gt;&lt;BR /&gt;1a. 23. 01/01/16. 11:01:00. 01/01/16 11:05:11. &amp;nbsp;1a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/01/16. 11:02:00. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/01/16 11:06:16&lt;BR /&gt;&lt;BR /&gt;would be one roll for the ones that are over lap &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Jan 2016 20:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244076#M56004</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2016-01-17T20:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Min and max overlapping two date time points</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244078#M56005</link>
      <description>&lt;P&gt;And if there was 4 overlap how would you want it to look like? Each entry into a group?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the lag function to create groups and determine if there's an overlap. Once your groups are assigned you can then use various transpose mechanisms to transpose your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 20:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244078#M56005</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-17T20:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Min and max overlapping two date time points</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244079#M56006</link>
      <description>Sorry forgot to mention that i need min and max for example if we have 3 or 4  entries same id same number  get the min and max from date time that falls within an hour of min an max longer than hr I will exclude it ...after that I would like to see if the min and max  date time field overlaps with the other number but same id ... thanks again</description>
      <pubDate>Sun, 17 Jan 2016 20:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Min-and-max-overlapping-two-date-time-points/m-p/244079#M56006</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2016-01-17T20:23:49Z</dc:date>
    </item>
  </channel>
</rss>

