<?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: proc summary autoname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848320#M335392</link>
    <description>&lt;P&gt;You have been in this forum long enough, you should know by now to READ THE LOG.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 69         proc summary data=test nway;
 70         class id;
 71         var m1 m2 m3;
 72         output out=test2
 73         max(m1 m2 m3) sum(s1 s2 s3) / autoname; ;
                          ___           _
                          73            73
 ERROR 73-322: Expecting an =.
 74         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the LOG is extremely clear indicating how to fix this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, it should be a requirement that if there are errors in the log that you don't understand, then show us the log. If there are errors in the log, don't wait until we ask to see the log, just show the log to us every single time there are errors from now on, along with your code and data.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 11:32:28 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-12-07T11:32:28Z</dc:date>
    <item>
      <title>proc summary autoname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848293#M335378</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;What is the reason that autoname is not working?(error)&lt;/P&gt;
&lt;P&gt;What is the way to solve it please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data test;
input id m1 m2 m3 s1 s2 s3;
datalines;
1 1 2 3 500 1150 200
1 0 4 1 150 2000 430
2 0 0 4 396 396 789
2 10 4 8 150 170 430
3 5 8 9 100 150 240
3 6 0 1 140 270 698
;
run;

proc summary data=test nway;
class id;
output out=test2
max(m1 m2 m3) =m1 m2 m3
sum(s1 s2 s3) =s1 s2 s3;
run;

proc summary data=test nway;
class id;
var m1 m2 m3;
output out=test2
max(m1 m2 m3) sum(s1 s2 s3) / autoname; ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848293#M335378</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-12-07T10:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary autoname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848300#M335381</link>
      <description>Your VAR statement is incomplete.  If you want statistics calculated from s1, s2, and s3, add those names to the VAR statement.</description>
      <pubDate>Wed, 07 Dec 2022 10:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848300#M335381</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-12-07T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary autoname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848301#M335382</link>
      <description>&lt;P&gt;You're missing a few equal signs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=test nway;
class id;
var m1 m2 m3;
output out=test2
max(m1 m2 m3) = sum(s1 s2 s3) = / autoname; ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848301#M335382</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-12-07T10:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary autoname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848320#M335392</link>
      <description>&lt;P&gt;You have been in this forum long enough, you should know by now to READ THE LOG.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 69         proc summary data=test nway;
 70         class id;
 71         var m1 m2 m3;
 72         output out=test2
 73         max(m1 m2 m3) sum(s1 s2 s3) / autoname; ;
                          ___           _
                          73            73
 ERROR 73-322: Expecting an =.
 74         run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the LOG is extremely clear indicating how to fix this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, it should be a requirement that if there are errors in the log that you don't understand, then show us the log. If there are errors in the log, don't wait until we ask to see the log, just show the log to us every single time there are errors from now on, along with your code and data.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 11:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848320#M335392</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-07T11:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary autoname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848594#M335498</link>
      <description>and you forgot to add s1 s2 s3 to var statement</description>
      <pubDate>Thu, 08 Dec 2022 18:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-autoname/m-p/848594#M335498</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-12-08T18:08:38Z</dc:date>
    </item>
  </channel>
</rss>

