<?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 summary - only the total row in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781878#M249202</link>
    <description>&lt;P&gt;An example using PROC REPORT off SASHELP.CARS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
column origin n;
define origin / group;
define n / "Number";
rbreak after / summarize;
compute after;
  origin = "Total";
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Nov 2021 07:43:25 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-23T07:43:25Z</dc:date>
    <item>
      <title>proc summary - only the total row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781852#M249191</link>
      <description>&lt;P&gt;I have a simple code that creates this output but I need the total. Is there a way to get that added?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Ethnicity Clients&lt;/STRONG&gt;&lt;BR /&gt;A 2822&lt;BR /&gt;B 929&lt;BR /&gt;C 383&lt;BR /&gt;D 471&lt;BR /&gt;E 179&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Total 4784&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc summary data=want nway missing;&lt;/STRONG&gt;&lt;BR /&gt;by ethnicity;&lt;BR /&gt;output out=test (drop=_type_ rename=(_freq_ = number));&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781852#M249191</guid>
      <dc:creator>ywon111</dc:creator>
      <dc:date>2021-11-23T07:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781856#M249194</link>
      <description>&lt;P&gt;Remove the NWAY and filter the results using the _TYPE_ column. &lt;BR /&gt;_TYPE_ = 0 is the total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323303"&gt;@ywon111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a simple code that creates this output but I need the total. Is there a way to get that added?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Ethnicity Clients&lt;/STRONG&gt;&lt;BR /&gt;A 2822&lt;BR /&gt;B 929&lt;BR /&gt;C 383&lt;BR /&gt;D 471&lt;BR /&gt;E 179&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Total 4784&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc summary data=want nway missing;&lt;/STRONG&gt;&lt;BR /&gt;by ethnicity;&lt;BR /&gt;output out=test (drop=_type_ rename=(_freq_ = number));&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 04:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781856#M249194</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-23T04:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary - only the total row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781878#M249202</link>
      <description>&lt;P&gt;An example using PROC REPORT off SASHELP.CARS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.cars;
column origin n;
define origin / group;
define n / "Number";
rbreak after / summarize;
compute after;
  origin = "Total";
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781878#M249202</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-23T07:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary - only the total row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781879#M249203</link>
      <description>&lt;P&gt;Because you have only one by/class variable removing "nway" and adding "descendtypes" from/to the proc summary statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781879#M249203</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-11-23T07:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary - only the total row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781913#M249222</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select bp_status length=40,count(*) as clients
 from sashelp.heart
  group by bp_status
union all
select 'Total',count(*) from sashelp.heart
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781913#M249222</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-23T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary - only the total row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781920#M249227</link>
      <description>&lt;P&gt;Remove NWAY and use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class ethnicity;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;by ethnicity;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:20:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-summary-only-the-total-row/m-p/781920#M249227</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-23T12:20:52Z</dc:date>
    </item>
  </channel>
</rss>

