<?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: how to get bold bottom border when using proc report to export the data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529492#M22246</link>
    <description>&lt;P&gt;It works.Thank you very much!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 18:55:29 GMT</pubDate>
    <dc:creator>daisy6</dc:creator>
    <dc:date>2019-01-23T18:55:29Z</dc:date>
    <item>
      <title>how to get bold bottom border when using proc report to export the data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529423#M22242</link>
      <description>&lt;P&gt;Hello SAS experts,&lt;BR /&gt;&lt;BR /&gt;I want to get a report which has the bold bottom border when a column value changes. For example,&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=want;&lt;BR /&gt;by sex name;&lt;BR /&gt;run;&lt;BR /&gt;ODS noresults;&lt;BR /&gt;ODS listing close;&lt;BR /&gt;ods Excel file="&amp;amp;dir.\test_&amp;amp;mon..xlsx" options (Embedded_titles = 'yes' sheet_name= "Class" frozen_headers= '2'&lt;BR /&gt;frozen_rowheaders="9" row_heights="16pt,16pt,16pt,16pt" absolute_column_width= '8,8,8,16,8,8,8,8,8,8,8,8,8,8,8');&lt;BR /&gt;title1 j=l height=8pt font=Verdana color=CX000000 "Class by Gender ";&lt;BR /&gt;options missing=" ";&lt;BR /&gt;proc Report data=want NOWD&lt;BR /&gt;style(header)=[vjust=m font_weight=bold foreground=white background=CX007FA3 FONT=(Verdana, 8pt, BOLD)]&lt;BR /&gt;style(column)={vjust=m FONT=(Verdana, 8pt)};&lt;BR /&gt;Column name sex age weight height;&lt;BR /&gt;define name / center display "Name";&lt;BR /&gt;define sex / order order=data noprint;&lt;BR /&gt;define age / center display "Age";&lt;BR /&gt;define weight / center display "Weight";&lt;BR /&gt;define height / center display "height";&lt;/P&gt;&lt;P&gt;compute name;&lt;BR /&gt;count+1;&lt;BR /&gt;if (mod(count,2))=0 then do;&lt;BR /&gt;call define(_row_,"style","style=[background=CXD4EAE4]");&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;compute after sex / style=[borderbottomwidth=1pt borderbottomcolor=black];&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ODS listing;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the gender changes from Female to male, I want the excel output of the last person Mary to have bold black bottom border. But my SAS code doesn't work. Could someone help me out? Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529423#M22242</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2019-01-23T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to get bold bottom border when using proc report to export the data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529463#M22244</link>
      <description>&lt;P&gt;Since you are looking for "last" behavior I think that you need to add an indicator variable to place the style element as desired. The indicator might want to be in the first column as below:&lt;/P&gt;
&lt;PRE&gt;data want2;
   set want;
   by sex name;
   If Last.Sex and sex='F' then Lastsex=1;
run;
options missing=" ";
proc Report data=want2 NOWD
style(header)=[vjust=m font_weight=bold foreground=white background=CX007FA3 FONT=(Verdana, 8pt, BOLD)]
style(column)={vjust=m FONT=(Verdana, 8pt)};
Column lastsex name  age weight height;
define name / center display "Name";
define lastsex /display  noprint;
define age / center display "Age";
define weight / center display "Weight";
define height / center display "height";

compute lastsex;
   if lastsex=1 then do;
      call define(_row_,"style","style=[borderbottomwidth=1pt borderbottomcolor=black]");
   end;
endcomp;
compute name;
   count+1;
   if (mod(count,2))=0 then do;
      call define(_row_,"style","style=[background=CXD4EAE4]");
   end;
endcomp;

/*compute after lastsex / style=[borderbottomwidth=1pt borderbottomcolor=black];*/
/*endcomp;*/
run;
options missing='.';
&lt;/PRE&gt;
&lt;P&gt;From your description I don't think you want compute after as that is for summaries.&lt;/P&gt;
&lt;P&gt;I did not include the ods excel, I'll leave that to you. Test the output before Excel as sometimes the translation to Excel causes odd things.&lt;/P&gt;
&lt;P&gt;Depending 1PT may not be a thick enough line so be prepared to bump that to a larger number. Decimals are acceptable.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 17:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529463#M22244</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-23T17:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get bold bottom border when using proc report to export the data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529492#M22246</link>
      <description>&lt;P&gt;It works.Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 18:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/how-to-get-bold-bottom-border-when-using-proc-report-to-export/m-p/529492#M22246</guid>
      <dc:creator>daisy6</dc:creator>
      <dc:date>2019-01-23T18:55:29Z</dc:date>
    </item>
  </channel>
</rss>

