<?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: summary by date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153641#M30146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a start time and end time then requirement 1 can not be met with the data in the data set as currently proposed.&lt;/P&gt;&lt;P&gt;Any approach would be based on "guessing" as start time and we wouldn't have a clue regarding the end time.&lt;/P&gt;&lt;P&gt;We can calculate intervals between the first and last, and insert a break for midnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post what you expect the output to look like given your example data (which does not cross midnight, so you may want to provide some example that does).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 20:38:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-02-04T20:38:56Z</dc:date>
    <item>
      <title>summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153637#M30142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;I have two grouping variables: date and name. There is one day of data for each staff for illustration. I would like to calculate the number of worked hours per day per name. Beth works 9:30 pm to 7:30 am. Note that date were arranged in increasing order so it started at 00:24:01 up to 07:16:17, then 21:44:47 to 23:45:30.&amp;nbsp; Alex works 10 am to 10 pm. I would like to calculate the total count per day per name. For each date I would like also to create a corresponding datetime: top of the hour if minute of date is less than 30, half past the hour if minute of date is greater than 30. &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;DATA staff;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; LENGTH status $ 6;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; INPUT @1 date datetime16. @18 name$ @23 count&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;CARDS; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:00:24:01 Beth 4&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:00:43:00 Beth 3&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:01:13:42 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:02:42:52 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:04:24:04 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:05:20:44 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:06:07:51 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:07:16:17 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:21:44:47 Beth 6&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:06:25 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:45:30 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:10:14:00 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:11:07:19 Alex 3&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:00:40 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:38:06 Alex 4&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:13:04:36 Alex 0&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:01:03 Alex 0&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:23:18 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:15:20:22 Alex 6&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:16:46:00 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:18:09:02 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:19:04:47 Alex 2&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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:20:57:22 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:21:45:00 Alex 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;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 19:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153637#M30142</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-02-04T19:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153638#M30143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you do if someone works 10PM to 6AM? Which "day" should the total count for, each, begin or end of the period?&lt;/P&gt;&lt;P&gt;Do you want a dataset result or a report table?&lt;/P&gt;&lt;P&gt;What should the output look like?&lt;/P&gt;&lt;P&gt;You say that you want to calculate "worked hours per day". Does the first date/time listed represent actual start of work? Does the last represent end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 19:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153638#M30143</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-02-04T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153639#M30144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If someone works for 10 PM to 6AM then that would be a different day:10PM to 12 midnight one day then 00 AM to 6AM the next day. In the example I used Alex schedule is always 9:30 pm to 7:30 am the next day. The first datetime does not necessarily represent start of work.&lt;/P&gt;&lt;P&gt;I would like &lt;/P&gt;&lt;P&gt;1.a data output for worked hours per day per staff based on the example data AND&lt;/P&gt;&lt;P&gt;2. the same example data table with additional column representing corresponding date as described earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clear.&lt;/P&gt;&lt;P&gt;Thanks for replying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 20:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153639#M30144</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-02-04T20:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153640#M30145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's helpful if you link back to the original question.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="64977" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" style="color: #2989c5;"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you want some sort of variable to represent a SHIFT worked, where a worker can have multiple shifts per day, not a DATE. &lt;/P&gt;&lt;P&gt;You haven't specified how you would like to differentiate a SHIFT. I suggested a 5 hour delay, but what makes sense based on your business. Is a 2 hour time difference a 'break' or the end of SHIFT?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Alex example above, then he works 2 SHIFTS if it crosses a date boundaries or is it one SHIFT?&amp;nbsp; That doesn't quite make sense I would think compared to someone who worked from Midnight to 7AM.&amp;nbsp; If only date matters, then the summary initially proposed would work. &lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; In the example I used Alex schedule is always 9:30 pm to 7:30 am the next day.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 20:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153640#M30145</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-04T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153641#M30146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a start time and end time then requirement 1 can not be met with the data in the data set as currently proposed.&lt;/P&gt;&lt;P&gt;Any approach would be based on "guessing" as start time and we wouldn't have a clue regarding the end time.&lt;/P&gt;&lt;P&gt;We can calculate intervals between the first and last, and insert a break for midnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post what you expect the output to look like given your example data (which does not cross midnight, so you may want to provide some example that does).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 20:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153641#M30146</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-02-04T20:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153642#M30147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the data having start time for Beth (shift from 9:30 pm and end at 7:30 pm the next day) and Alex (shift from 10 am and end at 10 pm the same day). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:21:44:47 Beth 6&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:06:25 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:45:30 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:24:01 Beth 4&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:43:00 Beth 3&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:01:13:42 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:02:42:52 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:04:24:04 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:05:20:44 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:06:07:51 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:07:16:17 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:10:14:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:11:07:19 Alex 3 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:00:40 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:38:06 Alex 4 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:13:04:36 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:01:03 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:23:18 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:15:20:22 Alex 6 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:16:46:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:18:09:02 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:19:04:47 Alex 2 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:20:57:22 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:21:45:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;run;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;The output for summary would look like&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;name&lt;/TD&gt;&lt;TD width="67"&gt;date&lt;/TD&gt;&lt;TD width="64"&gt;duration&lt;/TD&gt;&lt;TD width="64"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Beth&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;19-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;2:15&lt;/TD&gt;&lt;TD align="right"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Beth&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;20-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;7:16&lt;/TD&gt;&lt;TD align="right"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alex&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;20-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;11:31&lt;/TD&gt;&lt;TD align="right"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;where duration is in hours and minutes.&lt;/P&gt;&lt;P&gt;The output for a new table would look like&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Date&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name Count&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:21:44:47 19APR12:21:30:00 Beth 6&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:06:25 19APR12:23:00:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:45:30 19APR12:23:30:00 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:00:24:01 19APR12:00:00:00 Beth 4&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:43:00 20APR12:00:30:00 Beth 3&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:01:13:42 20APR12:01:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:02:42:52 20APR12:02:30:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:04:24:04 20APR12:04:00:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:05:20:44 20APR12:05:00:00 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:06:07:51 20APR12:06:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:07:16:17 20APR12:07:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:10:14:00 20APR12:10:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:11:07:19 20APR12:11:00:00 Alex 3 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:00:40 20APR12:12:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:38:06 20APR12:12:30:00 Alex 4 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:13:04:36 20APR12:13:00:00 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:01:03 20APR12:14:00:00 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:23:18 20APR12:14:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:15:20:22 20APR12:15:00:00 Alex 6 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:16:46:00 20APR12:16:30:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:18:09:02 20APR12:18:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:19:04:47 20APR12:19:00:00 Alex 2 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:20:57:22 20APR12:20:30:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:21:45:00 20APR12:21:30:00 Alex 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153642#M30147</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-02-05T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: summary by date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153643#M30148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the data having start time for Beth (9:30 pm and end at 7:30 pm the next day) and Alex 10 am and end at 10 pm the same day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:21:44:47 Beth 6&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:06:25 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:45:30 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:24:01 Beth 4&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:43:00 Beth 3&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:01:13:42 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:02:42:52 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:04:24:04 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:05:20:44 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:06:07:51 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:07:16:17 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:10:14:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:11:07:19 Alex 3 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:00:40 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:38:06 Alex 4 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:13:04:36 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:01:03 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:23:18 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:15:20:22 Alex 6 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:16:46:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:18:09:02 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:19:04:47 Alex 2 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:20:57:22 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:21:45:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;run;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;The output for summary would look like&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;name&lt;/TD&gt;&lt;TD width="67"&gt;date&lt;/TD&gt;&lt;TD width="64"&gt;duration&lt;/TD&gt;&lt;TD width="64"&gt;count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Beth&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;19-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;2:15&lt;/TD&gt;&lt;TD align="right"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Beth&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;20-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;7:16&lt;/TD&gt;&lt;TD align="right"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alex&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;20-Apr-12&lt;/TD&gt;&lt;TD class="xl64"&gt;11:31&lt;/TD&gt;&lt;TD align="right"&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;where duration is in hours and minutes.&lt;/P&gt;&lt;P&gt;The output for a new table would look like&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Date&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NewDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name Count&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:21:44:47 19APR12:21:30:00 Beth 6&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:06:25 19APR12:23:00:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:23:45:30 19APR12:23:30:00 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;19APR12:00:24:01 19APR12:00:00:00 Beth 4&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:00:43:00 20APR12:00:30:00 Beth 3&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:01:13:42 20APR12:01:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:02:42:52 20APR12:02:30:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:04:24:04 20APR12:04:00:00 Beth 5&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:05:20:44 20APR12:05:00:00 Beth 2&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:06:07:51 20APR12:06:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:07:16:17 20APR12:07:00:00 Beth 0&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:10:14:00 20APR12:10:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:11:07:19 20APR12:11:00:00 Alex 3 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:00:40 20APR12:12:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:12:38:06 20APR12:12:30:00 Alex 4 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:13:04:36 20APR12:13:00:00 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:01:03 20APR12:14:00:00 Alex 0 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:14:23:18 20APR12:14:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:15:20:22 20APR12:15:00:00 Alex 6 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:16:46:00 20APR12:16:30:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:18:09:02 20APR12:18:00:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:19:04:47 20APR12:19:00:00 Alex 2 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:20:57:22 20APR12:20:30:00 Alex 1 &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;20APR12:21:45:00 20APR12:21:30:00 Alex 1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/summary-by-date/m-p/153643#M30148</guid>
      <dc:creator>Marcusliat</dc:creator>
      <dc:date>2015-02-05T15:17:50Z</dc:date>
    </item>
  </channel>
</rss>

