<?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: Sum the values of a variable to get the result like a new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11812#M1181</link>
    <description>PROC MEANS or PROC SUMMARY or PROC UNIVARIATE will provide you with the sum of a variable. The OUTPUT statement will provide the result in a SAS data set for you to use.</description>
    <pubDate>Tue, 05 Oct 2010 15:45:11 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2010-10-05T15:45:11Z</dc:date>
    <item>
      <title>Sum the values of a variable to get the result like a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11811#M1180</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I'm quite new of Sas (I've finished my first traingin two weeks ago)....so I'm sorry if I write in the wrong section.&lt;BR /&gt;
I have an issue with the sum of the observations of a variable: I would like to sum all the observations of a variable in order to get a final result to save in a new variable.&lt;BR /&gt;
This is what I want but I don't know how....&lt;BR /&gt;
May someone help me?&lt;BR /&gt;
Thanks in advance</description>
      <pubDate>Tue, 05 Oct 2010 15:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11811#M1180</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-05T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the values of a variable to get the result like a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11812#M1181</link>
      <description>PROC MEANS or PROC SUMMARY or PROC UNIVARIATE will provide you with the sum of a variable. The OUTPUT statement will provide the result in a SAS data set for you to use.</description>
      <pubDate>Tue, 05 Oct 2010 15:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11812#M1181</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-10-05T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the values of a variable to get the result like a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11813#M1182</link>
      <description>share an example of what you are looking for.</description>
      <pubDate>Tue, 05 Oct 2010 18:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11813#M1182</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-10-05T18:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum the values of a variable to get the result like a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11814#M1183</link>
      <description>Thank yoy very much! I used the proc univariate and now it works--&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
proc univariate data=sasuser.PBZ_BCSI_Q2_2;&lt;BR /&gt;
var New_weight;&lt;BR /&gt;
output out=weight&lt;BR /&gt;
sum=tot_weight;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Now I'm gonna using "merge" to use the proc univariate result (sum) in some other operation inside my data set  "sasuser.PBZ_BCSI_Q2_2.</description>
      <pubDate>Wed, 06 Oct 2010 07:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sum-the-values-of-a-variable-to-get-the-result-like-a-new/m-p/11814#M1183</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-06T07:09:36Z</dc:date>
    </item>
  </channel>
</rss>

