<?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: count Mean with SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873613#M345184</link>
    <description>&lt;P&gt;No comma after the last variable name and before FROM&lt;/P&gt;
&lt;P&gt;Also no comma after FROM SASHELP.CARS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table cars11 as
    select make,
       type,
       Mean (horsepower) as Horsepower_Mean,
       Mean (invoice) as Invoice_Mean,
       Mean (weight) as Weight_Mean
    from sashelp.cars
    group by make, type;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pro tip: putting the commas before the variable in PROC SQL and indenting the code helps eliminate the first error, which is a common error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table cars11 as select 
       make
       ,type
       ,Mean (horsepower) as Horsepower_Mean
       ,Mean (invoice) as Invoice_Mean
       ,Mean (weight) as Weight_Mean
    from sashelp.cars
    group by make, type;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 12:57:48 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-05-03T12:57:48Z</dc:date>
    <item>
      <title>count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873612#M345183</link>
      <description>&lt;P&gt;how can i fix the syntax error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table cars11 as&lt;BR /&gt;select make,&lt;BR /&gt;type,&lt;BR /&gt;Mean (horsepower) as Mean1,&lt;BR /&gt;Mean (invoice) as Mean2,&lt;BR /&gt;Mean (weight) as Mean3,&lt;BR /&gt;From sashelp.cars,&lt;BR /&gt;Group by make, type;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873612#M345183</guid>
      <dc:creator>kindbe17</dc:creator>
      <dc:date>2023-05-03T12:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873613#M345184</link>
      <description>&lt;P&gt;No comma after the last variable name and before FROM&lt;/P&gt;
&lt;P&gt;Also no comma after FROM SASHELP.CARS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table cars11 as
    select make,
       type,
       Mean (horsepower) as Horsepower_Mean,
       Mean (invoice) as Invoice_Mean,
       Mean (weight) as Weight_Mean
    from sashelp.cars
    group by make, type;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pro tip: putting the commas before the variable in PROC SQL and indenting the code helps eliminate the first error, which is a common error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
    create table cars11 as select 
       make
       ,type
       ,Mean (horsepower) as Horsepower_Mean
       ,Mean (invoice) as Invoice_Mean
       ,Mean (weight) as Weight_Mean
    from sashelp.cars
    group by make, type;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873613#M345184</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-03T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873616#M345187</link>
      <description>&lt;P&gt;remove the semicolons after Mean3 and sashelp.cars&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873616#M345187</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-05-03T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873617#M345188</link>
      <description>&lt;P&gt;i have an error again;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Syntax error, expecting one of the following: ',', GROUP, ORDER.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873617#M345188</guid>
      <dc:creator>kindbe17</dc:creator>
      <dc:date>2023-05-03T12:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873619#M345190</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 12:55:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873619#M345190</guid>
      <dc:creator>kindbe17</dc:creator>
      <dc:date>2023-05-03T12:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: count Mean with SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873638#M345197</link>
      <description>&lt;P&gt;Please post the complete (all code and messages) log of the step by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-Mean-with-SQL/m-p/873638#M345197</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-03T13:52:22Z</dc:date>
    </item>
  </channel>
</rss>

