<?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: proc report rtf borderbottomstyle=double not displaying in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/791029#M253303</link>
    <description>&lt;P&gt;Figured it out.&amp;nbsp; It did not like my 'rowstyle' compute block.&amp;nbsp; I replaced it with this and now I get what I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if index(rowstyle,'DOUBLE') gt 0 and index(rowstyle,'BOLD') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=double fontweight=bold]");&lt;BR /&gt;else if index(rowstyle,'DOUBLE') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=double fontweight=normal]");&lt;BR /&gt;else if index(rowstyle,'BOLD') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=hidden fontweight=bold]");&lt;BR /&gt;else call define(_row_,"Style", "STYLE=[borderbottomstyle=hidden fontweight=normal]");&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 21:07:42 GMT</pubDate>
    <dc:creator>debusb1</dc:creator>
    <dc:date>2022-01-19T21:07:42Z</dc:date>
    <item>
      <title>proc report rtf borderbottomstyle=double not displaying</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790969#M253280</link>
      <description>&lt;P&gt;I have proc report code that writes to an rtf file.&amp;nbsp; The bottom border is supposed to be double and the Word properties show it as double but it does not display as double.&amp;nbsp; Any advice welcome - thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename outfile "P:\myfile.rtf";

data report;
length col0-col3 rowstyle $60;
col0="Gender (N, %)"; col1=" "; col2=" "; col3=" "; rowstyle=" BOLD"; output;
col0=" Female"; col1=" 196 (29.6%)"; col2=" 18 (36.0%)"; col3=" 214 (30.1%)"; rowstyle=" "; output;
col0=" Male"; col1=" 466 (70.4%)"; col2=" 32 (64.0%)"; col3=" 498 (69.9%)"; rowstyle=" DOUBLE"; output;
run;
 
ods listing close;
ods rtf bodytitle file = outfile;
ods escapechar = "|";

title1 "|S={indent=0in font=('TIMES NEW ROMAN',11pt,bold)}Table 2A: Subject Demographics";

proc report data=Report nowd missing wrap 
            style(header)= {background=white 
                            bordertopstyle=double
                            borderbottomstyle=double 
                            font=("TIMES NEW ROMAN",10pt,bold)} 
            style(column)= { font=("TIMES NEW ROMAN",10pt,normal) } ;

 columns (col0) (col1-col3 ) rowstyle;

 define col0 / display left flow "Subject Characteristics|S={borderleftstyle=double}" style={cellwidth=3.5in asis=on textalign=l verticalalign=t};
 define col1 / display center "Subjects in |n On Arm |n(N = 662)" style={cellwidth=1.0in};
 define col2 / display center "Subjects in |n Off Arm |n(N = 50)" style={cellwidth=1.0in};
 define col3 / display center "Total |n Subjects |n(N = 712)       |S={borderrightstyle=double}" style={cellwidth=1.0in};
 define rowstyle / noprint;

 compute col0;
   call define("col0","Style","STYLE=[borderleftstyle=double]");
 endcomp;

 compute col3 ;
   call define("col3       ","Style","STYLE=[borderrightstyle=double]");
 endcomp;

 compute rowstyle;
   if index(rowstyle,'BOLD') gt 0 then do;
     if index(rowstyle,'UNDERLINE') eq 0 then do;
       call define(_row_,"Style", "STYLE=[fontweight=bold borderbottomstyle=hidden]");
     end;
     else if index(rowstyle,'DOUBLE') gt 0 then do;
       call define(_row_,"Style", "STYLE=[fontweight=bold borderbottomstyle=double]");
     end;
     else do;
       call define(_row_,"Style", "STYLE=[fontweight=bold]");
     end;
   end;
   else if index(rowstyle,'UNDERLINE') eq 0 then do;
     call define(_row_,"Style", "STYLE=[borderbottomstyle=hidden]");
   end;
   else if index(rowstyle,'DOUBLE') gt 0 then do;
     call define(_row_,"Style", "STYLE=[borderbottomstyle=double]");
   end;

 endcomp;

run;

ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 18:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790969#M253280</guid>
      <dc:creator>debusb1</dc:creator>
      <dc:date>2022-01-19T18:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc report rtf borderbottomstyle=double not displaying</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790975#M253281</link>
      <description>&lt;P&gt;So close.&amp;nbsp; I can't see how to update my original post.&amp;nbsp; In simplifying the code for upload I missed one thing.&lt;/P&gt;&lt;P&gt;col0=" Male"; col1=" 466 (70.4%)"; col2=" 32 (64.0%)"; col3=" 498 (69.9%)"; rowstyle=" UNDERLINE"; output;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;col0=" Male"; col1=" 466 (70.4%)"; col2=" 32 (64.0%)"; col3=" 498 (69.9%)"; rowstyle=" DOUBLE"; output;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790975#M253281</guid>
      <dc:creator>debusb1</dc:creator>
      <dc:date>2022-01-19T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc report rtf borderbottomstyle=double not displaying</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790980#M253284</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/413334"&gt;@debusb1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So close.&amp;nbsp; I can't see how to update my original post.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your message should show 3 vertical dots next to the title. Right click on them and you should have a menu that allows edit the post (or delete or a number of other actions).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 18:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/790980#M253284</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-19T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc report rtf borderbottomstyle=double not displaying</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/791029#M253303</link>
      <description>&lt;P&gt;Figured it out.&amp;nbsp; It did not like my 'rowstyle' compute block.&amp;nbsp; I replaced it with this and now I get what I wanted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if index(rowstyle,'DOUBLE') gt 0 and index(rowstyle,'BOLD') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=double fontweight=bold]");&lt;BR /&gt;else if index(rowstyle,'DOUBLE') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=double fontweight=normal]");&lt;BR /&gt;else if index(rowstyle,'BOLD') gt 0 then call define(_row_,"Style", "STYLE=[borderbottomstyle=hidden fontweight=bold]");&lt;BR /&gt;else call define(_row_,"Style", "STYLE=[borderbottomstyle=hidden fontweight=normal]");&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 21:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-rtf-borderbottomstyle-double-not-displaying/m-p/791029#M253303</guid>
      <dc:creator>debusb1</dc:creator>
      <dc:date>2022-01-19T21:07:42Z</dc:date>
    </item>
  </channel>
</rss>

