<?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 on proc print in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116195#M32065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why is there a dummy variable? my original data only has 3 variables: &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; "var Org Unit N;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this mean I have to make a dummy var just to be able to show it as total?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 16:37:59 GMT</pubDate>
    <dc:creator>vomer</dc:creator>
    <dc:date>2013-02-25T16:37:59Z</dc:date>
    <item>
      <title>SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116185#M32055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a sum function on my proc print statement to get the column total - but I cannot figure out how to get the word "TOTAL" to show beside the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=testdata noobs label;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var Org Unit N;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where Org="Org1";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum N;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label N="Number of x";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label Org="Organization";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label unit="Unit";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas on how I can get it to display the word "TOTAL" in the last total row that is generated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116185#M32055</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2013-02-20T19:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116186#M32056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if this is a clean enough solution for you, but it may well be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain dummy 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=test noobs sumlabel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; style(grandtotal) = {backgrouncolor=white color=white};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by dummy;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum height weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label&amp;nbsp; dummy='Total'; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title 'Test of Getting Labeled Total';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 21:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116186#M32056</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-02-20T21:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116187#M32057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer,I am getting some errors but I tried it by modifying your code little bit.&lt;/P&gt;&lt;P&gt;Even label statement is not working, it displaying as Dummy it self why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain me if you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain dummy 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=test noobs&amp;nbsp; label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; style(grandtotal) = {background=white};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by dummy;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sum height weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; label&amp;nbsp; dummy='Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title 'Test of Getting Labeled Total';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 10:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116187#M32057</guid>
      <dc:creator>Sidhu</dc:creator>
      <dc:date>2013-02-22T10:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116188#M32058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You changed the sumlabel option to a label option.&amp;nbsp; For what you said you wanted to do, I would think that you needed the sumlabel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116188#M32058</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-02-22T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116189#M32059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply, and this was the error I see in my log of using sumlabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc print data=test noobs&amp;nbsp; sumlabel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DOUBLE, HEADING, LABEL, N,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOOBS, OBS, ROUND, ROWS, SPLIT, STYLE, UNIFORM, WIDTH.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;263&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(grandtotal) = {background=white};&lt;/P&gt;&lt;P&gt;264&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by dummy;&lt;/P&gt;&lt;P&gt;265&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum height weight;&lt;/P&gt;&lt;P&gt;266&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&amp;nbsp; dummy='Total';&lt;/P&gt;&lt;P&gt;267&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title 'Test of Getting Labeled Total';&lt;/P&gt;&lt;P&gt;268&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116189#M32059</guid>
      <dc:creator>Sidhu</dc:creator>
      <dc:date>2013-02-22T13:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116190#M32060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you added a colon (:) after the sumlabel keyword.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 13:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116190#M32060</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-02-22T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116191#M32061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even I did without Colon Doc, but I am getting same error why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 16:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116191#M32061</guid>
      <dc:creator>Sidhu</dc:creator>
      <dc:date>2013-02-22T16:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116192#M32062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post the actual code that you ran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 17:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116192#M32062</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-02-22T17:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116193#M32063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have both the LABEL and SUMLABEL options turned on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&amp;nbsp; It almost gets you there, but there's still an extra row for the grand total, even though the font is white...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-bidi-font-family: 'Times New Roman'; color: #1f497d; font-size: 11pt; mso-themecolor: dark2; mso-hansi-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-bidi-theme-font: minor-bidi;"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=testdata noobs label sumlabel &lt;/SPAN&gt;style(grandtotal) = {backgrouncolor=white color=white}&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;by dummy;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;var Org Unit N;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;where Org="Org1";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;sum N;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;label N="Number of x";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;label Org="Organization";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;label unit="Unit";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;label dummy = "Total";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="mso-bidi-font-family: 'Times New Roman'; color: #1f497d; font-size: 11pt; mso-themecolor: dark2; mso-hansi-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; font-family: 'Calibri','sans-serif'; mso-bidi-theme-font: minor-bidi;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #1f497d; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 17:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116193#M32063</guid>
      <dc:creator>TashaChapman</dc:creator>
      <dc:date>2013-02-22T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116194#M32064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Or, instead of struggling with PROC PRINT, you could just switch to PROC REPORT. It's a bit more verbose, but no dummy variable needed.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.class;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; retain dummy 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\_2_ways.html' style=sasweb;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;options nobyline;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=test noobs&amp;nbsp; label sumlabel&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; style(grandtotal) = {background=white};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; where name contains "J";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title 'Art and Tasha Solution with NOBYLINE added';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; by dummy;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; sum height weight;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; label height="Number of x"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight='Other Number'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="Organization"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy = "Total";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(summary) = Header;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; where name contains "J";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title 'PROC REPORT Solution (no "dummy" by group needed)';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; title2 'This solution uses SASHELP.CLASS (not test dataset)';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; column name sex age height weight;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; define name / order 'Organization';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; define sex / display ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; define age / display;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; define height / sum 'Number of X';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; define weight / sum 'Other Number';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; rbreak after / summarize;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; compute after;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = 'Total';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2013 03:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116194#M32064</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-02-23T03:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116195#M32065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why is there a dummy variable? my original data only has 3 variables: &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; "var Org Unit N;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does this mean I have to make a dummy var just to be able to show it as total?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116195#M32065</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2013-02-25T16:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116196#M32066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="4726" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; If you want the totals using proc print, yes, so that you can have a by variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You never posted the code that you said failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 18:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116196#M32066</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-02-25T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116197#M32067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And, if you switch to PROC REPORT, as shown in my code, then you do NOT need a dummy variable. If you notice, my PROC REPORT code works with SASHELP.CLASS directly. As Art said, since you did not post any data, I used SASHELP.CLASS to illustrate my example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 20:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116197#M32067</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-02-25T20:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116198#M32068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, that was not me - it was the user named Sidhu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try both methods and report back!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 16:17:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116198#M32068</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2013-02-27T16:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: SUM on proc print</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116199#M32069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia, I tried your method and does not seem to give me the word "total" at the last row:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;proc report data=dataset nowd&lt;/P&gt;
&lt;P&gt;style(summary) = Header;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; where Sender='Site1';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; column Sender unit N UniqueClients;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; define Sender / order 'Sending Organization';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; define unit / order 'Unit';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; define N / sum 'Number of X';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; define UniqueClients / sum 'Number of Y';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; rbreak after / summarize;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; compute after;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = 'Total';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 16:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SUM-on-proc-print/m-p/116199#M32069</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2013-02-27T16:28:46Z</dc:date>
    </item>
  </channel>
</rss>

