<?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 Proc Summary/Mean in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467589#M70703</link>
    <description>&lt;P&gt;Proc summary data = LIB_TRN.FFMSUB_SELECTED_1804 nway missing;&lt;BR /&gt;&amp;nbsp; by gpnr crms_org_id;&lt;BR /&gt;&amp;nbsp; var prov_num;&lt;BR /&gt;&amp;nbsp; output out= LIB_TRN.FFMSUB_SELECTED_AGG_1804(drop = _:)&lt;BR /&gt;&amp;nbsp; sum= maxid(prov_num(gpnr crms_org_id reporting_period db_filialnummer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; db_kontonummer ccdb_id kategorie gpname gbmerker&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nachrichtlich))=;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;WARNING: Variable gpnr already exists on file LIB_TRN.FFMSUB_SELECTED_AGG_1804.&lt;BR /&gt;WARNING: Variable crms_org_id already exists on file&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIB_TRN.FFMSUB_SELECTED_AGG_1804.&lt;BR /&gt;WARNING: The duplicate variables will not be included in the output dat&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the output statement number 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to remove this warning .&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 07:19:21 GMT</pubDate>
    <dc:creator>Sukhi1</dc:creator>
    <dc:date>2018-06-05T07:19:21Z</dc:date>
    <item>
      <title>Proc Summary/Mean</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467589#M70703</link>
      <description>&lt;P&gt;Proc summary data = LIB_TRN.FFMSUB_SELECTED_1804 nway missing;&lt;BR /&gt;&amp;nbsp; by gpnr crms_org_id;&lt;BR /&gt;&amp;nbsp; var prov_num;&lt;BR /&gt;&amp;nbsp; output out= LIB_TRN.FFMSUB_SELECTED_AGG_1804(drop = _:)&lt;BR /&gt;&amp;nbsp; sum= maxid(prov_num(gpnr crms_org_id reporting_period db_filialnummer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; db_kontonummer ccdb_id kategorie gpname gbmerker&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nachrichtlich))=;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;WARNING: Variable gpnr already exists on file LIB_TRN.FFMSUB_SELECTED_AGG_1804.&lt;BR /&gt;WARNING: Variable crms_org_id already exists on file&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LIB_TRN.FFMSUB_SELECTED_AGG_1804.&lt;BR /&gt;WARNING: The duplicate variables will not be included in the output dat&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the output statement number 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to remove this warning .&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 07:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467589#M70703</guid>
      <dc:creator>Sukhi1</dc:creator>
      <dc:date>2018-06-05T07:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary/Mean</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467594#M70704</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please help me reAD y&lt;IMG class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" border="0" alt="Smiley Happy" title="Smiley Happy" /&gt;R code&amp;nbsp;.&amp;nbsp; Easy to read code is not optional, it is key for anyone else looking at it.&amp;nbsp; Several tools are made available for to post code, use the code window - its the {i} above the post area, this keeps code formatting and doesn't put smiley faces in for instance.&amp;nbsp; Also, avoid coding in mixed case, thats not how you read a book.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the autoname and autolabel options.&amp;nbsp; Basically the warning is telling you that the variable being created from the sum already exists as a variable in the dataset, so you need to give it another name.&amp;nbsp; The autoname should add sum_ to the name.&lt;/P&gt;
&lt;PRE&gt;proc summary data=lib_trn.ffmsub_selected_1804 nway missing;
  by gpnr crms_org_id;
  var prov_num;
  output out=lib_trn.ffmsub_selected_agg_1804 
  sum=maxid(prov_num(gpnr crms_org_id reporting_period db_filialnummer
                     db_kontonummer ccdb_id kategorie gpname gbmerker
                     nachrichtlich))= / autoname autolabel;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 07:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467594#M70704</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-05T07:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary/Mean</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467628#M70709</link>
      <description>&lt;P&gt;The problem your code creates is that you are using these variables for two different purposes:&amp;nbsp; GPNR and CRMS_ORG_ID.&amp;nbsp; They are both part of the BY statement and part of the MAXID clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't see a reason to keep them in the MAXID clause, when they are already part of the BY statement.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 11:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/467628#M70709</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-06-05T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary/Mean</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/468254#M70747</link>
      <description>Thanks for you suggestion.I will keep in mind from now onwards. Yes I did try autoname and autolabel but it created new variable gpnr2 and crms_org_id2. May be I have gpnr and crms_org_id in "by" statement also. Anyway I removed it from maxid(variable list) now it is fine. Thanks.</description>
      <pubDate>Thu, 07 Jun 2018 05:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/468254#M70747</guid>
      <dc:creator>Sukhi1</dc:creator>
      <dc:date>2018-06-07T05:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary/Mean</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/468255#M70748</link>
      <description>Yes. I did removed it from MAXID clause and it worked fine. Thank you.</description>
      <pubDate>Thu, 07 Jun 2018 06:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Summary-Mean/m-p/468255#M70748</guid>
      <dc:creator>Sukhi1</dc:creator>
      <dc:date>2018-06-07T06:01:33Z</dc:date>
    </item>
  </channel>
</rss>

