<?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 Counts over a 24hr period in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/745321#M287453</link>
    <description>&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to pull a weeks worth of data and get the rolling number of devices to accountsID's over a 24hr period and sort them with the highest count at the top.&amp;nbsp; Hope that makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let start = '01apr2021 00:00:00'dt;&lt;BR /&gt;%let end = '07apr2021 00:00:00'dt;&lt;BR /&gt;%let status = '14may2021 00:00:00'dt;&lt;BR /&gt;&lt;BR /&gt;/* Base Data Query */&lt;BR /&gt;proc sql;&lt;BR /&gt;create table BaseQuery as&lt;BR /&gt;select ReportDate,&lt;BR /&gt;AccountID,&lt;BR /&gt;DeviceNumber,&lt;BR /&gt;datepart(CreateDate) format date9. as date,&lt;BR /&gt;timepart(CreateDate) format time8. as time,&lt;BR /&gt;TrackingNumber,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;from my.database&lt;/P&gt;&lt;P&gt;where ReportDate between &amp;amp;start. and &amp;amp;end.&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 21:05:35 GMT</pubDate>
    <dc:creator>bbarn</dc:creator>
    <dc:date>2021-06-02T21:05:35Z</dc:date>
    <item>
      <title>Counts over a 24hr period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/745321#M287453</link>
      <description>&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to pull a weeks worth of data and get the rolling number of devices to accountsID's over a 24hr period and sort them with the highest count at the top.&amp;nbsp; Hope that makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let start = '01apr2021 00:00:00'dt;&lt;BR /&gt;%let end = '07apr2021 00:00:00'dt;&lt;BR /&gt;%let status = '14may2021 00:00:00'dt;&lt;BR /&gt;&lt;BR /&gt;/* Base Data Query */&lt;BR /&gt;proc sql;&lt;BR /&gt;create table BaseQuery as&lt;BR /&gt;select ReportDate,&lt;BR /&gt;AccountID,&lt;BR /&gt;DeviceNumber,&lt;BR /&gt;datepart(CreateDate) format date9. as date,&lt;BR /&gt;timepart(CreateDate) format time8. as time,&lt;BR /&gt;TrackingNumber,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;from my.database&lt;/P&gt;&lt;P&gt;where ReportDate between &amp;amp;start. and &amp;amp;end.&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 21:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/745321#M287453</guid>
      <dc:creator>bbarn</dc:creator>
      <dc:date>2021-06-02T21:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counts over a 24hr period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/745378#M287454</link>
      <description>&lt;P&gt;What do you mean by "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;rolling number&lt;/U&gt; of devices to accountsID's over a 24hr period&lt;/STRONG&gt;&lt;/EM&gt;"?&amp;nbsp; Do you mean for every hour (or every minute, or every day) between &amp;amp;start and &amp;amp;end, you want the number of device records for the preceding 24 hours?&amp;nbsp; If so, do you want this rolling number for each id, or accumulated over all id's?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 02:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/745378#M287454</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-06-03T02:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Counts over a 24hr period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/747502#M287455</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Do you mean for every hour between &amp;amp;start and &amp;amp;end, you want the number of device records for the preceding 24 hours?&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;yes&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, do you want this rolling number for each id, or accumulated over all id's? &lt;STRONG&gt;Each ID&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 23:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Counts-over-a-24hr-period/m-p/747502#M287455</guid>
      <dc:creator>bbarn</dc:creator>
      <dc:date>2021-06-11T23:32:44Z</dc:date>
    </item>
  </channel>
</rss>

