<?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: Adding up different time intervals in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297286#M60263</link>
    <description>&lt;P&gt;Use proc means or a SQL query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum variable of interest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SQL group by time variable. Or if proc means include time variable as Class or By variable. Number of observations doesn't matter.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 00:36:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-09T00:36:05Z</dc:date>
    <item>
      <title>Adding up different time intervals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297281#M60262</link>
      <description>&lt;P&gt;Ive attached a file of my code.&lt;/P&gt;&lt;P&gt;What im trying to do is add up all the number in the absorder column for each given 15min window under then NZtimeentereed15 column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ie for the first 15min window it should return 13. second 15min window( ie 30min) it should return 3.&lt;/P&gt;&lt;P&gt;23 for the 45th min.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have over 700,000 observations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all help would be great.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12954i3ED54502093B2239/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Fri, 09 Sep 2016 00:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297281#M60262</guid>
      <dc:creator>STATSKING</dc:creator>
      <dc:date>2016-09-09T00:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding up different time intervals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297286#M60263</link>
      <description>&lt;P&gt;Use proc means or a SQL query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum variable of interest.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SQL group by time variable. Or if proc means include time variable as Class or By variable. Number of observations doesn't matter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 00:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297286#M60263</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-09T00:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding up different time intervals</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297287#M60264</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc SQL;
Create table want as
Select time, sum(variable) as total
From have
Group by time
Order by time;
Quit;

Proc means data=have noprint nway;
Class time;
Output out=want2 sum(variable)=total;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Sep 2016 00:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-up-different-time-intervals/m-p/297287#M60264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-09T00:38:22Z</dc:date>
    </item>
  </channel>
</rss>

