<?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 REPORT --- SUMMARY IN SEPCIFIC COLUMNS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92480#M19501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again! Cynthia: For the 'TOTAL' thing, I used the COMPUTE block, no error, but for some reason it did not show up in the report. Do I need to put more infor somewhere to make it show up? For the 're-calculate', I need to compute the ratio from other two summaries and put it in this summary line under another column. Is that possible? Thank you so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 18:19:48 GMT</pubDate>
    <dc:creator>qian</dc:creator>
    <dc:date>2012-10-11T18:19:48Z</dc:date>
    <item>
      <title>PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92476#M19497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do any one know how to select columns to symmary inside PROC REPORT. I used 'RBREAK /AFTER'. It summarized all numerical variables. I want to summarize only the ones I need to. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 16:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92476#M19497</guid>
      <dc:creator>qian</dc:creator>
      <dc:date>2012-10-11T16:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92477#M19498</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; Look in the doc at the difference between the default usage of SUM for numeric variables and the usage of DISPLAY. If you do not have DEFINE statements for your numeric variables, you will need to use a DEFINE statement so you can explicitly give a usage of DISPLAY -- this will turn off summarizing of the values at the RBREAK/BREAK. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEFINE numvar / DISPLAY;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without a DEFINE statement, ALL your numeric (analysis) variables have a default usage of SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 17:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92477#M19498</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-10-11T17:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92478#M19499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! Cynthia: It works! Is there any way I can fill in the 1st column in this row with "TOTAL"? AND re-calculate the values in other column in this summary row?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 17:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92478#M19499</guid>
      <dc:creator>qian</dc:creator>
      <dc:date>2012-10-11T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92479#M19500</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; I'm not sure what you mean by "re-calculate the values in other columns" ... what other columns? Why not let PROC REPORT do the calculation. For example, if you want to show the MEAN at the break, you can give your variable a usage that is the statistic you want to see at the break:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEFINE SALARY / MEAN;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEFINE SALARY / N;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first DEFINE would show the average of all salaries at the RBREAK and the second DEFINE would show the COUNT (or N).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But to get the word "Total" at the break, you would use a COMPUTE block. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COMPUTE AFTER;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; firstvar = 'TOTAL';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDCOMP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 17:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92479#M19500</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-10-11T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92480#M19501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again! Cynthia: For the 'TOTAL' thing, I used the COMPUTE block, no error, but for some reason it did not show up in the report. Do I need to put more infor somewhere to make it show up? For the 're-calculate', I need to compute the ratio from other two summaries and put it in this summary line under another column. Is that possible? Thank you so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 18:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92480#M19501</guid>
      <dc:creator>qian</dc:creator>
      <dc:date>2012-10-11T18:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT --- SUMMARY IN SEPCIFIC COLUMNS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92481#M19502</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; For the 'TOTAL' thing, I can't even begin to guess what's going on, since you did not share your code (or any code). Possibly the variable in your first column is numeric or possibly the first variable is character, but has a length of 1...when you use the COMPUTE block technique, you are limited to the number of characters that represent the length of the item in the first column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, if for some reason, you can't post your code and data, try to replicate your PROC REPORT using SASHELP.CLASS or SASHELP.SHOES. If the 'TOTAL' thing works with SASHELP.CLASS or SASHELP.SHOES, then you have to consider the differences between the SASHELP data and your data. IF the 'TOTAL' thing doesn't work with SASHELP datasets, then perhaps you have discovered something strange going on. But, again, seeing your code (your actual code and ALL your code, including ODS statements) will be most helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Have you read the PROC REPORT documentation? Or looked for user group papers about PROC REPORT and/or COMPUTE blocks? If you are new to PROC REPORT and COMPUTE blocks, perhaps some research would help focus your question or reveal where your COMPUTE block might be failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 00:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-SUMMARY-IN-SEPCIFIC-COLUMNS/m-p/92481#M19502</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-10-12T00:37:13Z</dc:date>
    </item>
  </channel>
</rss>

