<?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 Error in proc sql group by statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-in-proc-sql-group-by-statement/m-p/776541#M31386</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am trying to create a table of summed variables grouped by date. When I run the code I receive the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenMMerc_0-1635266500337.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65058i076EDCA85D91C409/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenMMerc_0-1635266500337.png" alt="JenMMerc_0-1635266500337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't see where the problem is occurring. What am I missing? Thanks in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC SQL;
CREATE TABLE new_table AS
SELECT Date, SUM (Fully_vaccinated) as fullvax_persons, SUM (Unvaccinated) as unvax_persons
Group BY Date
FROM denominator
WHERE Age in (12,13,14,15,16,17);
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 16:44:04 GMT</pubDate>
    <dc:creator>JenMMerc</dc:creator>
    <dc:date>2021-10-26T16:44:04Z</dc:date>
    <item>
      <title>Error in proc sql group by statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-proc-sql-group-by-statement/m-p/776541#M31386</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I am trying to create a table of summed variables grouped by date. When I run the code I receive the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenMMerc_0-1635266500337.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65058i076EDCA85D91C409/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenMMerc_0-1635266500337.png" alt="JenMMerc_0-1635266500337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't see where the problem is occurring. What am I missing? Thanks in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;PROC SQL;
CREATE TABLE new_table AS
SELECT Date, SUM (Fully_vaccinated) as fullvax_persons, SUM (Unvaccinated) as unvax_persons
Group BY Date
FROM denominator
WHERE Age in (12,13,14,15,16,17);
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-proc-sql-group-by-statement/m-p/776541#M31386</guid>
      <dc:creator>JenMMerc</dc:creator>
      <dc:date>2021-10-26T16:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in proc sql group by statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-in-proc-sql-group-by-statement/m-p/776544#M31387</link>
      <description>&lt;P&gt;FROM &amp;amp; WHERE should be before GROUP. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE new_table AS
SELECT Date, SUM (Fully_vaccinated) as fullvax_persons, SUM (Unvaccinated) as unvax_persons
FROM denominator
WHERE Age in (12,13,14,15,16,17)
Group BY Date;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 16:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-in-proc-sql-group-by-statement/m-p/776544#M31387</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T16:50:18Z</dc:date>
    </item>
  </channel>
</rss>

