<?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 Compute in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Compute/m-p/91764#M26134</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; What are you trying to get to work? You have nothing in your COMPUTE block for SCHOOLCODE. I have already posted a response in your other question, that RACE needs to be ORDER or GROUP if you want to get a summary on it. If all you want is a summary line, you do not need a COMPUTE block, only a BREAK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I have a hard time visualizing what you want when you say that you want "sum of FCODE within RACE by school" -- do you want to see 1 summary row for every unique combination of SCHOOL/RACE/FCODE? or do you want to see each SCHOOL with the detail lines for RACE/FCODE and then have a summary at the end of the DETAIL lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'd recommend that you study the documentation topic on ow PROC REPORT builds a report so you can understand the function of GROUP and ORDER with BREAK and COMPUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 23:06:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-01-30T23:06:03Z</dc:date>
    <item>
      <title>Proc Report Compute</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Compute/m-p/91763#M26133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with multiple compute statements within Proc Report?&amp;nbsp;&amp;nbsp; I cant seem to get it to work: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to compute the sum of FCODE within RACE by school.&amp;nbsp;&amp;nbsp; Thank you all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC REPORT NOWD DATA=Q1 OUT=Q1A&lt;/P&gt;&lt;P&gt;NOFS HEADLINE HEADSKIP;&lt;/P&gt;&lt;P&gt;COLUMNS SCHOOLcODE RACE FCODE TOTAL;&lt;/P&gt;&lt;P&gt;DEFINE SCHOOLCODE / GROUP;&lt;/P&gt;&lt;P&gt;DEFINE RACE / DISPLAY;&lt;/P&gt;&lt;P&gt;DEFINE FCODE / DISPLAY; &lt;/P&gt;&lt;P&gt;DEFINE TOTAL/ ANALYSIS SUM;&lt;/P&gt;&lt;P&gt;COMPUTE AFTER SCHOOLCODE;&lt;/P&gt;&lt;P&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;BREAK AFTER SCHOOLCODE / SUMMARIZE&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 22:36:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Compute/m-p/91763#M26133</guid>
      <dc:creator>SAS_new</dc:creator>
      <dc:date>2013-01-30T22:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Compute</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Compute/m-p/91764#M26134</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; What are you trying to get to work? You have nothing in your COMPUTE block for SCHOOLCODE. I have already posted a response in your other question, that RACE needs to be ORDER or GROUP if you want to get a summary on it. If all you want is a summary line, you do not need a COMPUTE block, only a BREAK statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I have a hard time visualizing what you want when you say that you want "sum of FCODE within RACE by school" -- do you want to see 1 summary row for every unique combination of SCHOOL/RACE/FCODE? or do you want to see each SCHOOL with the detail lines for RACE/FCODE and then have a summary at the end of the DETAIL lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'd recommend that you study the documentation topic on ow PROC REPORT builds a report so you can understand the function of GROUP and ORDER with BREAK and COMPUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 23:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-Compute/m-p/91764#M26134</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-01-30T23:06:03Z</dc:date>
    </item>
  </channel>
</rss>

