<?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: summarizing weather observations from different sites in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241738#M55728</link>
    <description>&lt;P&gt;My output would look like this:&lt;/P&gt;
&lt;P&gt;Site &amp;nbsp; &amp;nbsp; Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RA SN Total&lt;/P&gt;
&lt;P&gt;KBOS 01Jan2016 3 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KBOS 03Jan2016 3 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KACY 03Jan2016 0 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KACY 04Jan2016 0 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Bruce&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2016 20:57:22 GMT</pubDate>
    <dc:creator>brucehughw</dc:creator>
    <dc:date>2016-01-04T20:57:22Z</dc:date>
    <item>
      <title>summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241719#M55719</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset with the following three columns: site, dateTime, precipitationType. To keep it simple, let's assume I have two sites: KBOS and KACY. Datetime is a variable for the date and time of a particular observation. Precipitation type (again, keeping it simple) includes -RA, RA, +RA (for light, moderate, and heavy rain) and -SN, SN, +SN (for snow).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like a report that contains columns for site, date, minutes of precipitation, minutes of RA, minutes of SN. I'd also like to, say, filter for dates with at least X minutes of precipitation and maybe include columns for -RA, RA, and +RA.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any/all suggestions are welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Bruce&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 19:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241719#M55719</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-04T19:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241725#M55721</link>
      <description>&lt;P&gt;Is there a column to show participation start / stop?&amp;nbsp; With these columns how do you see how many minutes of participation?&amp;nbsp; Provide something like this to show the dataset you currently have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;infile cards dsd;&lt;BR /&gt;informat site $4. datetime datetime. precipitationtype $3.;&lt;BR /&gt;format site $4. datetime datetime. precipitationtype $3.;&lt;BR /&gt;input site datetime precipitationtype;&lt;BR /&gt;cards;&lt;BR /&gt;kbos,01JAN2016:05:00:00,-RA&lt;BR /&gt;kbos,02JAN2016:05:00:00,RA&lt;BR /&gt;kbos,03JAN2016:05:00:00,+RA&lt;BR /&gt;kacy,01JAN2016:05:00:00,-SN&lt;BR /&gt;kacy,02JAN2016:05:00:00,SN&lt;BR /&gt;kacy,03JAN2016:05:00:00,+SN&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241725#M55721</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2016-01-04T20:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241726#M55722</link>
      <description>&lt;P&gt;You have enough going on that you should provide some example data and what the final result for that data would be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are your data point datetimes the begining, end or middle of a period? Are the reported times fixed interval (every 5 minutes) or variable interval?&lt;/P&gt;
&lt;P&gt;If they are variable how are going to caluclate "minutes of precipitation"? I would expect a calcultion like that to come from a start/end time. Are you working from someone else's summarized data?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241726#M55722</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-04T20:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241731#M55723</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30712"&gt;@Steelers_In_DC&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Is there a column to show participation start / stop?&amp;nbsp; With these columns how do you see how many minutes of participation?&amp;nbsp; Provide something like this to show the dataset you currently have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;infile cards dsd;&lt;BR /&gt;informat site $4. datetime datetime. precipitationtype $3.;&lt;BR /&gt;format site $4. datetime datetime. precipitationtype $3.;&lt;BR /&gt;input site datetime precipitationtype;&lt;BR /&gt;cards;&lt;BR /&gt;kbos,01JAN2016:05:00:00,-RA&lt;BR /&gt;kbos,02JAN2016:05:01:00,-RA&lt;BR /&gt;kbos,03JAN2016:05:10:00,+RA&lt;BR /&gt;kacy,01JAN2016:05:20:00,-SN&lt;BR /&gt;kacy,02JAN2016:07:51:00,SN&lt;BR /&gt;kacy,03JAN2016:07:52:00,+SN&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- this means there was -RA at 0500 and 0501, +RA at 0510, -SN at 0520, SN at 0751 and +SN at 0752 -- otherwise, no precipitation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see updates to the data you included. Sorry for not being clearer in my initial submission. Each site can have only one type of weather at a given time, as I've shown. Also, I do not have start/end times. When there is precipitation (recorded once per minute), there is an observation. When there is no precipitation, there is no observation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks, Bruce&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241731#M55723</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-04T20:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241734#M55724</link>
      <description>&lt;P&gt;You could start with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data precipMinutes;
length broadPrecipitationType $2;
set have; by site;
lastTime = lag(dateTime);
if first.site then do;
	call missing(lastTime);
	end;
else do;
	minutes = intck("minute", lastTime, dateTime, "continuous");
	broadPrecipitationType = compress(precipitationType, "+-");
	date = datepart(dateTime);
	if not missing(precipitationType) then output;
	end;
format date yymmdd10.;
keep site dateTime date precipitationType broadPrecipitationType minutes;
run;

proc tabulate data=precipMinutes format=4.0;
class site date broadPrecipitationType;
var minutes;
table site*date, (broadPrecipitationType all)*minutes*sum="";
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jan 2016 21:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241734#M55724</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-04T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241735#M55725</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;You have enough going on that you should provide some example data and what the final result for that data would be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are your data point datetimes the begining, end or middle of a period? Are the reported times fixed interval (every 5 minutes) or variable interval?&lt;/P&gt;
&lt;P&gt;If they are variable how are going to caluclate "minutes of precipitation"? I would expect a calcultion like that to come from a start/end time. Are you working from someone else's summarized data?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello. In the previous reply I updated a sample dataset (yes, sorry I did not provide) and answered some of your questions. Reported times are every minute -- but only when there is precipitation. I'm working from my own data. The original data does have start/end times, but I thought it would be cleaner just to note what was happening every minute. Also, I will typically have a numerous entries in a row (0501, 0502, 0503, ...) for, say, -RA, but not always. Here's a fuller sample dataset (again, building on the sample provided earlier)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data have;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;infile cards dsd;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;informat site $4. datetime datetime. precipitationtype $3.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;format site $4. datetime datetime. precipitationtype $3.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input site datetime precipitationtype;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cards;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kbos,01JAN2016:05:00:00,-RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kbos,01JAN2016:05:01:00,-RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kbos,01JAN2016:05:10:00,+RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,03JAN2016:07:20:00,-SN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,03JAN2016:07:51:00,SN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,03JAN2016:07:52:00,+SN&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;kbos,03JAN2016:16:21:00,-RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kbos,03JAN2016:16:22:00,-RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kbos,03JAN2016:16:26:00,+RA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,04JAN2016:05:20:00,-SN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,04JAN2016:07:51:00,SN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kacy,04JAN2016:07:52:00,+SN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE: I did not see that the earlier reply (from&amp;nbsp;Steelers_In_DC) had different dates, so my short description of what is happening at 0500, 0501, etc. is correct, but the observations are occuring on different dates. I changed some of these and added more dates. This is more typical: a few observations (or many, actually, up to 1440) on a given day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks, Bruce&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241735#M55725</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-04T20:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241736#M55726</link>
      <description>And what do you want the output to look like, assuming this would be your data?</description>
      <pubDate>Mon, 04 Jan 2016 20:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241736#M55726</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-04T20:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241737#M55727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given the fuller description of my data&amp;amp;colon;&lt;/P&gt;
&lt;PRE&gt;data have;
infile cards dsd;
informat site $4. datetime datetime. precipitationtype $3.;
format site $4. datetime datetime. precipitationtype $3.;
input site datetime precipitationtype;
cards;
kbos,01JAN2016:05:00:00,-RA
kbos,01JAN2016:05:01:00,-RA
kbos,01JAN2016:05:10:00,+RA
kacy,03JAN2016:07:20:00,-SN
kacy,03JAN2016:07:51:00,SN
kacy,03JAN2016:07:52:00,+SN
kbos,03JAN2016:16:21:00,-RA
kbos,03JAN2016:16:22:00,-RA
kbos,03JAN2016:16:26:00,+RA
kacy,04JAN2016:05:20:00,-SN
kacy,04JAN2016:07:51:00,SN
kacy,04JAN2016:07:52:00,+SN
;
run;&lt;/PRE&gt;
&lt;P&gt;does your solution still apply? Also, I want to report precipitation for each day -- the idea being we will see which days had a lot of precipitation and what types fell. &amp;nbsp;Finally, in your code, what does this do:&lt;/P&gt;
&lt;PRE&gt;if first. site then do;
	call missing(lastTime);
	end;&lt;/PRE&gt;
&lt;P&gt;Thanks! Bruce&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241737#M55727</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-04T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241738#M55728</link>
      <description>&lt;P&gt;My output would look like this:&lt;/P&gt;
&lt;P&gt;Site &amp;nbsp; &amp;nbsp; Date &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RA SN Total&lt;/P&gt;
&lt;P&gt;KBOS 01Jan2016 3 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KBOS 03Jan2016 3 &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KACY 03Jan2016 0 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;KACY 04Jan2016 0 &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp;3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Bruce&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241738#M55728</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-04T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241784#M55734</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd;
informat site $4. datetime datetime. precipitationtype $3.;
format site $4. datetime datetime. precipitationtype $3.;
input site datetime precipitationtype;
cards;
kbos,01JAN2016:05:00:00,-RA
kbos,01JAN2016:05:01:00,-RA
kbos,01JAN2016:05:10:00,+RA
kacy,03JAN2016:07:20:00,-SN
kacy,03JAN2016:07:51:00,SN
kacy,03JAN2016:07:52:00,+SN
kbos,03JAN2016:16:21:00,-RA
kbos,03JAN2016:16:22:00,-RA
kbos,03JAN2016:16:26:00,+RA
kacy,04JAN2016:05:20:00,-SN
kacy,04JAN2016:07:51:00,SN
kacy,04JAN2016:07:52:00,+SN
;
run;
data temp;
 set have;
 date=datepart(datetime);
 type=compress(precipitationtype,,'ka');
 format date date9.;
run;
proc sql;
create table want as
 select site,date,sum(type='RA') as RA,sum(type='SN') as SN,count(*) as total
  from temp
   group by site,date;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jan 2016 05:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241784#M55734</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-01-05T05:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241833#M55736</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd;
informat site $4. datetime datetime. precipitationtype $3.;
format site $4. datetime datetime. precipitationtype $3.;
input site datetime precipitationtype;
cards;
kbos,01JAN2016:05:00:00,-RA
kbos,01JAN2016:05:01:00,-RA
kbos,01JAN2016:05:10:00,+RA
kacy,03JAN2016:07:20:00,-SN
kacy,03JAN2016:07:51:00,SN
kacy,03JAN2016:07:52:00,+SN
kbos,03JAN2016:16:21:00,-RA
kbos,03JAN2016:16:22:00,-RA
kbos,03JAN2016:16:26:00,+RA
kacy,04JAN2016:05:20:00,-SN
kacy,04JAN2016:07:51:00,SN
kacy,04JAN2016:07:52:00,+SN
;
run;
data temp;
 set have;
 date=datepart(datetime);
 type=compress(precipitationtype,,'ka');
 format date date9.;
run;
proc sql;
create table want as
 select site,date,sum(type='RA') as RA,sum(type='SN') as SN,count(*) as total
  from temp
   group by site,date;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks very much! I was not aware that proc sql allowed conditions (type='SN') in the select statement. That's very handy.&lt;/P&gt;
&lt;P&gt;Thanks again, Bruce&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241833#M55736</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-05T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241841#M55738</link>
      <description>&lt;P&gt;My code reflected the initial description of your data, or at least my understanding of it. It doesn't take advantage of the fact that every observation represents a single minute.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241841#M55738</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-01-05T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241844#M55739</link>
      <description>&lt;P&gt;PG,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I apologize for not indicating in my initial post that each observation corresponded to 1 minute of precipitation. Thanks for your suggestion - and also for your suggestion on another post of mine, which I will use/get back to when I next receive data that needs processing and uploading, which will be soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241844#M55739</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-05T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241845#M55740</link>
      <description>&lt;P&gt;Sine you're looking for a "report" you may want to consider proc tabulate instead of proc sql.&lt;/P&gt;
&lt;P&gt;Building on&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;'s code, you can use Proc Tabulate to generate your report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=temp;
class site date type;
table site*date, (type all='Total')*n=''*f=8./misstext='0';
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241845#M55740</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-05T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: summarizing weather observations from different sites</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241853#M55741</link>
      <description>Thanks, Reeza. Good suggestion. I will be sending out this and similar reports a lot, so I will try this proc tabulate code. Bruce</description>
      <pubDate>Tue, 05 Jan 2016 16:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/summarizing-weather-observations-from-different-sites/m-p/241853#M55741</guid>
      <dc:creator>brucehughw</dc:creator>
      <dc:date>2016-01-05T16:13:00Z</dc:date>
    </item>
  </channel>
</rss>

