<?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: ODS highlighting duplicate row columns in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323135#M17688</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It is very easy to do if you just want the duplicate value "blanked out" as shown in #1 below. If you make a "helper" variable using BY group processing and make a counter whose value will be GT 1 for the dups, then you can easily highlight a cell (#3) or a whole row (#4), as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6630i9C85C89FDAC1B3F5/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="hilite_dups.png" title="hilite_dups.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jan 2017 01:42:56 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-01-07T01:42:56Z</dc:date>
    <item>
      <title>ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323028#M17686</link>
      <description>&lt;P&gt;data test(keep=ln_no,upd_date);&lt;/P&gt;
&lt;P&gt;set test2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;sample data&lt;/P&gt;
&lt;P&gt;ln_no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upd_date&lt;/P&gt;
&lt;P&gt;1111&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/15/14&lt;/P&gt;
&lt;P&gt;1122&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/5/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1122&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/11/15&amp;nbsp;&amp;nbsp; (repeated)&lt;/P&gt;
&lt;P&gt;1444&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8/15/11&lt;/P&gt;
&lt;P&gt;1166&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/8/11&lt;/P&gt;
&lt;P&gt;1166&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/5/15&amp;nbsp;&amp;nbsp; (repeated)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In ODS is there a way to place a highlight color say orange or red to highlight the ln_no column if the ln_no repeats on the next line.&lt;/P&gt;
&lt;P&gt;In this case 1122 and 1166 repeated and I want to identify them as repeats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1122&lt;/P&gt;
&lt;P&gt;1166&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 16:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323028#M17686</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2017-01-06T16:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323135#M17688</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It is very easy to do if you just want the duplicate value "blanked out" as shown in #1 below. If you make a "helper" variable using BY group processing and make a counter whose value will be GT 1 for the dups, then you can easily highlight a cell (#3) or a whole row (#4), as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6630i9C85C89FDAC1B3F5/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="hilite_dups.png" title="hilite_dups.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 01:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323135#M17688</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-07T01:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323141#M17691</link>
      <description>&lt;PRE&gt;
data test;
input ln_no       upd_date : mmddyy10.;
format upd_date mmddyy10.;
cards;
1111       6/15/14
1122       9/5/11   
1122       9/11/15  
1444      8/15/11
1166      2/8/11
1166    12/5/15  
;
run;

proc report data=test nowd;
columns ln_no upd_date;
define ln_no/display;
define upd_date/display;
compute upd_date;
 if ln_no eq lag(ln_no) then 
 call define(_row_,'style','style={background=orange}'); 
endcomp;
run;


&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 Jan 2017 04:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323141#M17691</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-01-07T04:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323153#M17692</link>
      <description>Hi: Yes, using LAG directly, is possible, however, your report ONLY works if LN_NO is given a usage of DISPLAY. With a usage of ORDER, the report does not work anymore.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 07 Jan 2017 14:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323153#M17692</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-07T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323223#M17694</link>
      <description>&lt;P&gt;Thanks, this works.&amp;nbsp; It will show highlight the last entriy in this case ln_no in a color based on the lag function&lt;/P&gt;
&lt;P&gt;So in this case&lt;/P&gt;
&lt;P&gt;1111&lt;/P&gt;
&lt;P&gt;1111&amp;nbsp; the last entry will have the color background.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get both to show the color background and not just the last entry&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 18:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323223#M17694</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2017-01-08T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323239#M17695</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt; Yes, that is possible, but not part of what you originally asked for. In order to do that, the LN_NO variable has to be defined as an ORDER variable. Do you want to see the LN_NO value on every row or not? The answer to that question has an impact on the PROC REPORT code that you will need. For this modification, you would NOT need to use the LAG approach.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jan 2017 23:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/323239#M17695</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-08T23:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS highlighting duplicate row columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/343403#M18177</link>
      <description>&lt;P&gt;This was very easy to follow and helpful! Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-highlighting-duplicate-row-columns/m-p/343403#M18177</guid>
      <dc:creator>MGuidry</dc:creator>
      <dc:date>2017-03-22T16:45:44Z</dc:date>
    </item>
  </channel>
</rss>

