<?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 codes for tables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48712#M13186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a charity donations data set that includes unique IDs for individual donors and the amount they have donated at different dates. I have uploaded this into Enterprise guide but what i want to do is to find for each donor Id , the total amount they have donated from their joining date . I want the output to be represented in a table that can be further analysed using Enterprise miner. What are the SAS codes i can use to accomplish this task? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 14:22:12 GMT</pubDate>
    <dc:creator>Relle</dc:creator>
    <dc:date>2012-02-08T14:22:12Z</dc:date>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48712#M13186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a charity donations data set that includes unique IDs for individual donors and the amount they have donated at different dates. I have uploaded this into Enterprise guide but what i want to do is to find for each donor Id , the total amount they have donated from their joining date . I want the output to be represented in a table that can be further analysed using Enterprise miner. What are the SAS codes i can use to accomplish this task? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48712#M13186</guid>
      <dc:creator>Relle</dc:creator>
      <dc:date>2012-02-08T14:22:12Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48713#M13187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just want to add total donations to each record, you could use proc sql.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id donation;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;2 4&lt;/P&gt;&lt;P&gt;2 6&lt;/P&gt;&lt;P&gt;3 3&lt;/P&gt;&lt;P&gt;3 .&lt;/P&gt;&lt;P&gt;3 15&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *,sum(donation) as total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by id&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 14:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48713#M13187</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-08T14:28:34Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48714#M13188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for the quick reply art297. i forgot to mention i am a green SAS user so not familiar with the codes ...yet. I did try the proc sql query but i noticed the total amount has been created as a new column but each id is still been displayed several times. In the data set a donor id may appear ten times if they have donated ten times on different dates. i want the output to just display the donor id once and they total amount they donated that ten times. I appreciate your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48714#M13188</guid>
      <dc:creator>Relle</dc:creator>
      <dc:date>2012-02-08T15:42:37Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48715#M13189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that you wanted to keep all of your other data.&amp;nbsp; Given the above example, what do you want the final file to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48715#M13189</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-08T15:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48716#M13190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding to what Art suggested: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id donation;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 2&lt;/P&gt;&lt;P&gt;1 3&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;2 4&lt;/P&gt;&lt;P&gt;2 6&lt;/P&gt;&lt;P&gt;3 3&lt;/P&gt;&lt;P&gt;3 .&lt;/P&gt;&lt;P&gt;3 15&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct id,sum(donation) as total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by id&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48716#M13190</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2012-02-08T15:48:51Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48717#M13191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I want the final file to have for each unique donor id, the total amount of donation . So for example instaed of having same donor id appearing twice in the data set as different records, just have it appear once, but with the total amount they have donated.....&lt;/P&gt;&lt;P&gt;I have other variables within the dataset but they are not relevant so will like to drop them when creating the final file. Just the donor id and the toatal amount donated are required. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48717#M13191</guid>
      <dc:creator>Relle</dc:creator>
      <dc:date>2012-02-08T15:59:53Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48718#M13192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to what Pritish suggested, but you can limit the variables included:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct id,sum(donation) as total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by id&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48718#M13192</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-08T16:04:21Z</dc:date>
    </item>
    <item>
      <title>PROC codes for tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48719#M13193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks that 's fantastic! It works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-codes-for-tables/m-p/48719#M13193</guid>
      <dc:creator>Relle</dc:creator>
      <dc:date>2012-02-08T16:08:21Z</dc:date>
    </item>
  </channel>
</rss>

