<?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 Means help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379146#M91225</link>
    <description>&lt;P&gt;That's not really a good idea. If you want totals, you should use a reporting procedure such as PROC PRINT or PROC REPORT or TABULATE. It's too easy to mix up the totals with the data later on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, just append the data in, if you used the same variable names. If not, you need to rename them to match and append it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;

set have totals;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Jul 2017 17:11:50 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-25T17:11:50Z</dc:date>
    <item>
      <title>Proc Means help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379144#M91224</link>
      <description>&lt;P&gt;I calculated the sum of all the variables using proc means and not sure how to &amp;nbsp;combine them with the main dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given dataset T&lt;/P&gt;&lt;P&gt;ID &amp;nbsp;var1 var2 var3&lt;BR /&gt;1 &amp;nbsp;20 &amp;nbsp; &amp;nbsp; &amp;nbsp;30 &amp;nbsp; &amp;nbsp; 52&lt;BR /&gt;2 &amp;nbsp;80 &amp;nbsp; &amp;nbsp;20 &amp;nbsp; &amp;nbsp; 65&lt;BR /&gt;3 &amp;nbsp;42 &amp;nbsp; &amp;nbsp;95 &amp;nbsp; &amp;nbsp; 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want dataset:&lt;/P&gt;&lt;P&gt;ID &amp;nbsp;var1 &amp;nbsp;var2 &amp;nbsp;var3&lt;BR /&gt;1 &amp;nbsp; &amp;nbsp;20 &amp;nbsp; &amp;nbsp;30 &amp;nbsp; &amp;nbsp; 52&lt;BR /&gt;2 &amp;nbsp; &amp;nbsp;80 &amp;nbsp; 20 &amp;nbsp; &amp;nbsp; 65&lt;BR /&gt;3 &amp;nbsp; 42 &amp;nbsp; &amp;nbsp;95 &amp;nbsp; &amp;nbsp;25&lt;BR /&gt;Tot 142 145 142&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT FROM PROC MEANS&lt;/P&gt;&lt;DIV&gt;Obs _TYPE_ _FR &amp;nbsp;&amp;nbsp;VAR1 VAR2 VAR3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;142&lt;/TD&gt;&lt;TD&gt;145&lt;/TD&gt;&lt;TD&gt;142&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to join the sum from proc means to the main dataset T.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379144#M91224</guid>
      <dc:creator>Kalai2008</dc:creator>
      <dc:date>2017-07-25T17:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379146#M91225</link>
      <description>&lt;P&gt;That's not really a good idea. If you want totals, you should use a reporting procedure such as PROC PRINT or PROC REPORT or TABULATE. It's too easy to mix up the totals with the data later on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, just append the data in, if you used the same variable names. If not, you need to rename them to match and append it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;

set have totals;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379146#M91225</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-25T17:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379156#M91227</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 17:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-help/m-p/379156#M91227</guid>
      <dc:creator>Kalai2008</dc:creator>
      <dc:date>2017-07-25T17:41:08Z</dc:date>
    </item>
  </channel>
</rss>

