<?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 proc report rbreak summarize in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37810#M5325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia's answer is correct.&lt;/P&gt;&lt;P&gt;Here is what the code looks like:&lt;/P&gt;&lt;P&gt;computer per_osha;&lt;/P&gt;&lt;P&gt;if _break_="_RBREAK_" then per_osha.sum=100;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 16:21:05 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2011-07-28T16:21:05Z</dc:date>
    <item>
      <title>proc report rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37808#M5323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding up tot_osha and per_osha using rbreak summarize.&lt;BR /&gt;However, I would like to change the sum of per_osha to 100.&lt;BR /&gt;How do I accomplish this?&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=csbu3 nowd contents="Claims" out=test&lt;BR /&gt;style(header)=[font_weight=bold background=CX90D9D7 /*very light bluish green*/]; &lt;BR /&gt;options missing='';&lt;BR /&gt;column ydoi1 task1 tot_osha per_osha;&lt;BR /&gt;define ydoi1 / noprint;&lt;BR /&gt;define task1 / 'Task';&lt;BR /&gt;define tot_osha / analysis "2011 YTD Total" style(column)={background=CXE599A7};&lt;BR /&gt;define per_osha / analysis "% of 2011 Total" style(column)={background=orange};&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;compute per_osha;&lt;BR /&gt;&amp;nbsp; if _break_="_RBREAK_" then per_osha=100;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 21:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37808#M5323</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2011-07-27T21:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc report rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37809#M5324</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; When you use an ANALYSIS variable in a COMPUTE block, you must use the compound form of the name for reference in syntax:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;itemname.statisticname&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you had these DEFINE statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define age / mean 'Age';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define amount / analysis 'Amt';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define total / sum 'Tot';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define change / min 'Minimum';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the COMPUTE block references would be:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;AGE.MEAN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;AMOUNT.SUM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;TOTAL.SUM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;CHANGE.MIN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A usage of ANALYSIS implies the SUM statistic, so the compound name for your item would be:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;PER_OSHA.SUM&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, 28 Jul 2011 13:22:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37809#M5324</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-07-28T13:22:32Z</dc:date>
    </item>
    <item>
      <title>proc report rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37810#M5325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia's answer is correct.&lt;/P&gt;&lt;P&gt;Here is what the code looks like:&lt;/P&gt;&lt;P&gt;computer per_osha;&lt;/P&gt;&lt;P&gt;if _break_="_RBREAK_" then per_osha.sum=100;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 16:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-rbreak-summarize/m-p/37810#M5325</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2011-07-28T16:21:05Z</dc:date>
    </item>
  </channel>
</rss>

