<?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 compute block style in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-compute-block-style/m-p/15213#M3338</link>
    <description>style=[background=orange font_weight=bold] in the compute block is not being applied. Any suggestions?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
proc report data=org nowd contents="Claims"&lt;BR /&gt;
style(header)=[font_weight=bold]; &lt;BR /&gt;
options missing='0';&lt;BR /&gt;
column department div tot_osha;&lt;BR /&gt;
define department /group 'Customer Service' width=18 style(column)={just=l} order=data;&lt;BR /&gt;
define div / group noprint;&lt;BR /&gt;
define tot_osha / 'Total' style(column)={background=gold}; &lt;BR /&gt;
compute department;&lt;BR /&gt;
if div in (1,6,7,8,9,10) then call define(_row_,"style","style=[background=orange font_weight=bold]");&lt;BR /&gt;
endcomp;&lt;BR /&gt;
where mdoi=1;&lt;BR /&gt;
run;</description>
    <pubDate>Tue, 22 Feb 2011 21:29:51 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2011-02-22T21:29:51Z</dc:date>
    <item>
      <title>proc report compute block style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-compute-block-style/m-p/15213#M3338</link>
      <description>style=[background=orange font_weight=bold] in the compute block is not being applied. Any suggestions?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
proc report data=org nowd contents="Claims"&lt;BR /&gt;
style(header)=[font_weight=bold]; &lt;BR /&gt;
options missing='0';&lt;BR /&gt;
column department div tot_osha;&lt;BR /&gt;
define department /group 'Customer Service' width=18 style(column)={just=l} order=data;&lt;BR /&gt;
define div / group noprint;&lt;BR /&gt;
define tot_osha / 'Total' style(column)={background=gold}; &lt;BR /&gt;
compute department;&lt;BR /&gt;
if div in (1,6,7,8,9,10) then call define(_row_,"style","style=[background=orange font_weight=bold]");&lt;BR /&gt;
endcomp;&lt;BR /&gt;
where mdoi=1;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 22 Feb 2011 21:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-compute-block-style/m-p/15213#M3338</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2011-02-22T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc report compute block style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-compute-block-style/m-p/15214#M3339</link>
      <description>Hi:&lt;BR /&gt;
  As discussed in these previous forum postings, PROC REPORT builds a report row from LEFT to RIGHT, based on the order of the variables in the COLUMN statement. &lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=36032賀" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=36032賀&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=9483┋" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=9483┋&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=24350弞" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=24350弞&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  So, given your COLUMN statement,&lt;BR /&gt;
[pre]&lt;BR /&gt;
column department div tot_osha;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
When PROC REPORT is putting DEPARTMENT on each report row, it has no visibility of the value for the DIV item, because DIV has not been placed on the report row yet. So you cannot use DIV in the compute block for DEPARTMENT. There's no reason, since DIV is a NOPRINT item that you couldn't swap the order of the two items in the COLUMN statement -- unless that would mess up the ordering of the rows.&lt;BR /&gt;
&lt;BR /&gt;
Or, you could just do your CALL DEFINE in a COMPUTE block for DIV -- you can style a row and have a COMPUTE block for a NOPRINT column.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 23 Feb 2011 02:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-compute-block-style/m-p/15214#M3339</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-23T02:22:44Z</dc:date>
    </item>
  </channel>
</rss>

