<?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 Conditional format to rows with PROC PRINT or REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-format-to-rows-with-PROC-PRINT-or-REPORT/m-p/61064#M7276</link>
    <description>Is there an easy way conditionally to put a different format to the rows in output from PRINT or REPORT. &lt;BR /&gt;
I.e. I would like to print all the rows where sex='F' with bold font and red background:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ods html style=sasweb;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
id name;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;/B&gt;</description>
    <pubDate>Wed, 12 Nov 2008 22:35:04 GMT</pubDate>
    <dc:creator>pax</dc:creator>
    <dc:date>2008-11-12T22:35:04Z</dc:date>
    <item>
      <title>Conditional format to rows with PROC PRINT or REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-format-to-rows-with-PROC-PRINT-or-REPORT/m-p/61064#M7276</link>
      <description>Is there an easy way conditionally to put a different format to the rows in output from PRINT or REPORT. &lt;BR /&gt;
I.e. I would like to print all the rows where sex='F' with bold font and red background:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ods html style=sasweb;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
id name;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;/B&gt;</description>
      <pubDate>Wed, 12 Nov 2008 22:35:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-format-to-rows-with-PROC-PRINT-or-REPORT/m-p/61064#M7276</guid>
      <dc:creator>pax</dc:creator>
      <dc:date>2008-11-12T22:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional format to rows with PROC PRINT or REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-format-to-rows-with-PROC-PRINT-or-REPORT/m-p/61065#M7277</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;PROC PRINT allow you to perform traffic lighting on particular cells, while PROC REPORT allows you to perform row level conditional highlighting using the CALL DEFINE statement.&lt;BR /&gt;&lt;BR /&gt;Some sample code is below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;ods html file='style_rept.html' style=sasweb;

proc report data=sashelp.class nowd;
	title 'Conditional Row Highlighting';
	column name sex age height;
	define name / order;
	define sex / display;
	define age /display;
	define height /display;
	compute sex;
		if sex = 'F' then
			do;
				call define(_ROW_,'style','style={background=red font_weight=bold}');
			end;
	endcomp;
run;

ods html close;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;cynthia&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 11:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-format-to-rows-with-PROC-PRINT-or-REPORT/m-p/61065#M7277</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-01T11:52:40Z</dc:date>
    </item>
  </channel>
</rss>

