<?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: Color row in red in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826785#M326575</link>
    <description>&lt;P&gt;It is not possible to change the background colour of a row in a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: If you want a report, using proc report would be my first choice. There are many papers explaining how to change the background colour conditionally, i am sure you will find something adaptable to your issue.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 05:34:11 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2022-08-03T05:34:11Z</dc:date>
    <item>
      <title>Color row in red</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826769#M326563</link>
      <description>Hello&lt;BR /&gt;Let's say that I have a data set that included summary information by customers grade.&lt;BR /&gt;&lt;BR /&gt;Let's say that there is a macro variable called colorgrade and the task is to color the row with the chosen grade in red color.&lt;BR /&gt;&lt;BR /&gt;What is the way to do it please?&lt;BR /&gt;&lt;BR /&gt;%let colorgrade=10;&lt;BR /&gt;Data have;&lt;BR /&gt;Input grade nr obligo2205 obligo2204;&lt;BR /&gt;Cards:&lt;BR /&gt;2 80000 200 220&lt;BR /&gt;3 70000 190 210&lt;BR /&gt;4 200000 400 370&lt;BR /&gt;5 250000 500 480&lt;BR /&gt;6 280000 520 510&lt;BR /&gt;7 180000 280 320&lt;BR /&gt;8 140000 210 215&lt;BR /&gt;9 90000 140 130&lt;BR /&gt;10 30000 90 92&lt;BR /&gt;;&lt;BR /&gt;Run;</description>
      <pubDate>Wed, 03 Aug 2022 02:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826769#M326563</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-08-03T02:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Color row in red</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826785#M326575</link>
      <description>&lt;P&gt;It is not possible to change the background colour of a row in a dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: If you want a report, using proc report would be my first choice. There are many papers explaining how to change the background colour conditionally, i am sure you will find something adaptable to your issue.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 05:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826785#M326575</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-03T05:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Color row in red</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826840#M326595</link>
      <description>&lt;PRE&gt;%let colorgrade=10;
Data have;
Input grade nr obligo2205 obligo2204;
Cards;
2 80000 200 220
3 70000 190 210
4 200000 400 370
5 250000 500 480
6 280000 520 510
7 180000 280 320
8 140000 210 215
9 90000 140 130
10 30000 90 92
;
Run;

proc report data=have nowd;
define grade/display;
compute grade;
if grade=&amp;amp;colorgrade. then call define(_row_,'style','style={background=red}');
endcomp;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1659530792079.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74054i42F775762DDEEEBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1659530792079.png" alt="Ksharp_0-1659530792079.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 12:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Color-row-in-red/m-p/826840#M326595</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-03T12:46:29Z</dc:date>
    </item>
  </channel>
</rss>

