<?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 Formatting report using Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436434#M20374</link>
    <description>&lt;P&gt;I am trying to color x-rate based on flag_x value but below code is not working.. please help. sample file attached.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC REPORT DATA= FINAL NOWD;&lt;BR /&gt;COLUMN HOSPITAL_CODE x_RATE THRESHOLD TARGET MAX FLAG_x;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DEFINE HOSPITAL_CODE / DISPLAY;&lt;BR /&gt;DEFINE x_RATE / DISPLAY;&lt;BR /&gt;DEFINE THRESHOLD / DISPLAY;&lt;BR /&gt;DEFINE TARGET / DISPLAY;&lt;BR /&gt;DEFINE MAX / DISPLAY;&lt;BR /&gt;DEFINE &lt;SPAN&gt;FLAG_&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&amp;nbsp;/ DISPLAY;&lt;/P&gt;&lt;P&gt;COMPUTE x_RATE;&lt;BR /&gt;IF FLAG_x=1 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=blue}');&lt;BR /&gt;ELSE IF FLAG_x=2 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=GREEN}');&lt;BR /&gt;ELSE IF FLAG_x=3 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=YELLOW}');&lt;BR /&gt;ELSE IF FLAG_x=4 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=RED}');&lt;BR /&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2018 19:42:50 GMT</pubDate>
    <dc:creator>sw8ishi1</dc:creator>
    <dc:date>2018-02-12T19:42:50Z</dc:date>
    <item>
      <title>Conditional Formatting report using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436434#M20374</link>
      <description>&lt;P&gt;I am trying to color x-rate based on flag_x value but below code is not working.. please help. sample file attached.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC REPORT DATA= FINAL NOWD;&lt;BR /&gt;COLUMN HOSPITAL_CODE x_RATE THRESHOLD TARGET MAX FLAG_x;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DEFINE HOSPITAL_CODE / DISPLAY;&lt;BR /&gt;DEFINE x_RATE / DISPLAY;&lt;BR /&gt;DEFINE THRESHOLD / DISPLAY;&lt;BR /&gt;DEFINE TARGET / DISPLAY;&lt;BR /&gt;DEFINE MAX / DISPLAY;&lt;BR /&gt;DEFINE &lt;SPAN&gt;FLAG_&lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&amp;nbsp;/ DISPLAY;&lt;/P&gt;&lt;P&gt;COMPUTE x_RATE;&lt;BR /&gt;IF FLAG_x=1 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=blue}');&lt;BR /&gt;ELSE IF FLAG_x=2 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=GREEN}');&lt;BR /&gt;ELSE IF FLAG_x=3 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=YELLOW}');&lt;BR /&gt;ELSE IF FLAG_x=4 THEN CALL DEFINE(_COL_,'STYLE','STYLE={BACKGROUND=RED}');&lt;BR /&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 19:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436434#M20374</guid>
      <dc:creator>sw8ishi1</dc:creator>
      <dc:date>2018-02-12T19:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting report using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436435#M20375</link>
      <description>&lt;P&gt;In the COLUMN statement, FLAG_X must appear before (to the left of) X_RATE.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 19:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436435#M20375</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-12T19:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting report using Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436454#M20376</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; And, if you absolutely need the variable FLAG_X listed as the last item on the report row, then you can use it multiple times on the report. Use it once to the left of X_RATE for highlighting and then use it again with an alias name in the column statement so it will appear in the position you want. In the code below, AGE is used to highlight the SEX column, but it also appears as the last variable on the report row because of using the construction AGE=SHOWLAST in the COLUMN statement to place the alias item at the end of the row.&lt;/P&gt;
&lt;P&gt;cynthia&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_alias.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18467iB6EC98BD9FC11337/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_alias.png" alt="use_alias.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Conditional-Formatting-report-using-Proc-Report/m-p/436454#M20376</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-12T21:07:12Z</dc:date>
    </item>
  </channel>
</rss>

