<?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: Having trouble with SAS Proc SQL grouping by date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68700#M19679</link>
    <description>Thank you.  &lt;BR /&gt;
I just had the datepart in Select Statement and then referenced the alias in the group by</description>
    <pubDate>Wed, 02 Sep 2009 19:54:43 GMT</pubDate>
    <dc:creator>Ryujin</dc:creator>
    <dc:date>2009-09-02T19:54:43Z</dc:date>
    <item>
      <title>Having trouble with SAS Proc SQL grouping by date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68698#M19677</link>
      <description>I seem to be having trouble using the group by with Proc SQL e.g&lt;BR /&gt;
in SQL if i wanted to take a datetime and group by day rather then the full datetime I would do:&lt;BR /&gt;
&lt;BR /&gt;
CONVERT(varchar(10), DateTime, 101)&lt;BR /&gt;
&lt;BR /&gt;
When I format to DateTime9.0 in SAS and then try to group by that same column it shows it as DateTime9.0 but won't group by the same.</description>
      <pubDate>Tue, 01 Sep 2009 21:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68698#M19677</guid>
      <dc:creator>Ryujin</dc:creator>
      <dc:date>2009-09-01T21:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with SAS Proc SQL grouping by date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68699#M19678</link>
      <description>If I understand you correctly take the date from the datetime by&lt;BR /&gt;
datevar = datepart(datetimevar) &lt;BR /&gt;
and group by that.</description>
      <pubDate>Tue, 01 Sep 2009 22:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68699#M19678</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-01T22:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with SAS Proc SQL grouping by date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68700#M19679</link>
      <description>Thank you.  &lt;BR /&gt;
I just had the datepart in Select Statement and then referenced the alias in the group by</description>
      <pubDate>Wed, 02 Sep 2009 19:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-trouble-with-SAS-Proc-SQL-grouping-by-date/m-p/68700#M19679</guid>
      <dc:creator>Ryujin</dc:creator>
      <dc:date>2009-09-02T19:54:43Z</dc:date>
    </item>
  </channel>
</rss>

