<?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 issue in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-issue/m-p/51858#M14245</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; There are many previous forum postings on the use of PROC REPORT. To get TOTAL on the last summary line of your report, you will need a COMPUTE AFTER section. You will also need to look up "left-to-right" processing with PROC REPORT (also in previous postings), and you will need to look up how to use a COMPOUND name. For example, if for some silly reason, I wanted to subtract AGE from HEIGHT for SASHELP.CLASS, and I did NOT have any DEFINE statements for either AGE or HEIGHT, the default usage of those variables would be ANALYSIS with the SUM statistic. The COLUMN statement and COMPUTE block using the compound name for calculating the difference would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;column name sex height age diff;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;compute diff;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; diff = height.sum - age.sum;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the COLUMN statement, DIFF would have to appear &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;after &lt;/STRONG&gt;&lt;/SPAN&gt;HEIGHT and AGE in the COLUMN order and then the compound name:&lt;EM&gt;&lt;STRONG&gt;var.statistic &lt;/STRONG&gt;&lt;/EM&gt;would need to be used.&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, 22 Aug 2011 14:24:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-08-22T14:24:05Z</dc:date>
    <item>
      <title>Proc report issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-issue/m-p/51857#M14244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="padding-right: 3.35pt; padding-left: 3.35pt; padding-bottom: 0px; padding-top: 0px;"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD colspan="7" style="border-right: medium none; padding-right: 3.35pt; border-top: black 1pt solid; padding-left: 3.35pt; border-left: medium none; border-bottom: medium none; background-color: white;" valign="bottom" width="640"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;&amp;amp;var&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;Current Residence Status&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;total_bad&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;count&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;bad&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;Applicants (per cent)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 2.25pt solid; background-color: white;" valign="bottom" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;Index&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Boarding&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;11&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;34&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0.3235294&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;12%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;-36&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Buyer&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;17&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0.0588235&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;6%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;391&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Living w&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Other&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0.2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;2%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;22&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Owner&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;70&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0.1428571&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;25%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;84&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Renting&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;42&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;150&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0.28&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;53%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;-22&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;Supplied&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;0%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-right: 3.35pt; padding-left: 3.35pt; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;-100&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="115"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;66&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="68"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;281&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="102"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;2.0052101&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="113"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;100%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: medium none; padding-right: 3.35pt; border-top: medium none; padding-left: 3.35pt; border-left: medium none; border-bottom: black 1pt solid; background-color: white;" valign="top" width="72"&gt;&lt;P align="center" style="margin: 3.35pt 0px;"&gt;&lt;SPAN style="font-size: 9.5pt; color: black; font-family: 'Arial','sans-serif';"&gt;339&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, the above is what I get when I perform the proc report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;TITLE&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'Table 4.1:Characteristic Analysis:&amp;amp;var'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;rtf&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"reportstyles.html"&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=Journal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;report&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=vha_acr.graph_curr_resistatus &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;nowd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;(header) = [font=(Arial,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;3&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;) just=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;(report) = [font=(Arial,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;) borderwidth=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; CELLSPACING=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; just=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; WIDTH=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;1000&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;(column) = [font=(Arial,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;)just=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; Good / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;computed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'&amp;amp;var'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; curr_resistatus total_bad Good count bad participants Index);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;rbreak&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;after&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;summarize&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;UL&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;OL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;rtf&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;close&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;I want to define a new numeric variable called good defined by good=count-total_bad;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;How would you do this? When I try to do it, I keep getting 0 for all entries and SAS says&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;total_bad is uninitialised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;I am also trying to put a label called "total" in the last row of the column &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt;Current Residence Status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: black; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000080; font-family: Courier New;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 07:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-issue/m-p/51857#M14244</guid>
      <dc:creator>willy0625</dc:creator>
      <dc:date>2011-08-22T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report-issue/m-p/51858#M14245</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; There are many previous forum postings on the use of PROC REPORT. To get TOTAL on the last summary line of your report, you will need a COMPUTE AFTER section. You will also need to look up "left-to-right" processing with PROC REPORT (also in previous postings), and you will need to look up how to use a COMPOUND name. For example, if for some silly reason, I wanted to subtract AGE from HEIGHT for SASHELP.CLASS, and I did NOT have any DEFINE statements for either AGE or HEIGHT, the default usage of those variables would be ANALYSIS with the SUM statistic. The COLUMN statement and COMPUTE block using the compound name for calculating the difference would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;column name sex height age diff;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;compute diff;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; diff = height.sum - age.sum;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;endcomp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the COLUMN statement, DIFF would have to appear &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;after &lt;/STRONG&gt;&lt;/SPAN&gt;HEIGHT and AGE in the COLUMN order and then the compound name:&lt;EM&gt;&lt;STRONG&gt;var.statistic &lt;/STRONG&gt;&lt;/EM&gt;would need to be used.&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, 22 Aug 2011 14:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report-issue/m-p/51858#M14245</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-08-22T14:24:05Z</dc:date>
    </item>
  </channel>
</rss>

