<?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: Using proc SQL to sum categories? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687257#M208618</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using two separate tables that already have race and ethnicity broken down&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Can you show us a portion of these two tables? Can you show us the desired output?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:53:33 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-09-28T15:53:33Z</dc:date>
    <item>
      <title>Using proc SQL to sum categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687252#M208616</link>
      <description>&lt;P&gt;I'm new to using proc SQL, but I'm using it to&amp;nbsp;look at counts of states by race/ethnicity (separate categories).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to include a new group called "all" for both race and ethnicity, so it would be combining (for each of race and ethnicity) the total counts for the 2 categories.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the easiest way to do this? To create this table, I'm using two separate tables that already have race and ethnicity broken down; would it be easier to modify those primary tables, or somehow create a new variable within the new table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687252#M208616</guid>
      <dc:creator>SAS93</dc:creator>
      <dc:date>2020-09-28T15:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc SQL to sum categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687256#M208617</link>
      <description>Not using SQL is faster - PROC MEANS does this by default or PROC TABULATE. &lt;BR /&gt;For MEANS look into the CLASS, WAYS and TYPES statements. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687256#M208617</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-28T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc SQL to sum categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687257#M208618</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using two separate tables that already have race and ethnicity broken down&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Can you show us a portion of these two tables? Can you show us the desired output?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687257#M208618</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-28T15:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc SQL to sum categories?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687265#M208623</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297876"&gt;@SAS93&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What is the easiest way to do this? &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you want a dataset, use &lt;STRONG&gt;proc Means&lt;/STRONG&gt;. If you want a report table, use &lt;STRONG&gt;proc Tabulate&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-SQL-to-sum-categories/m-p/687265#M208623</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-09-28T16:15:57Z</dc:date>
    </item>
  </channel>
</rss>

