<?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 RTF Proc Report Help. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772292#M245212</link>
    <description>Line colours, width and spacing is controlled with the STYLE options. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Oct 2021 20:56:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-10-05T20:56:39Z</dc:date>
    <item>
      <title>ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772285#M245207</link>
      <description>&lt;P&gt;Using the SASHELP.Class data set as an example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following Code.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;ods rtf file="C:\FilePath\TestRTF.rtf";
options nodate nonumber;
Title "Summary";

proc report data=SASHELP.Class
Style(Report) = [Frame=Below];
Column Sex Name Age Height Weight;
Define Sex / Group Center;
Define Name / Style(Column)=[CellWidth=0.75in] CENTER;
Define Age / Style(Column)=[CellWidth=0.75in] CENTER;
Define Height / Style(Column)=[CellWidth=0.75in] CENTER;
Define Weight / Style(Column)=[CellWidth=0.75in] CENTER;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This outputs the following&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mcook_1-1633465920056.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64381iD9EE681795AB876D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mcook_1-1633465920056.png" alt="mcook_1-1633465920056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How do I Remove the Row lines in the sex Column(Except the line separating F from M of course), and Vertically Center the F and M?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as in the 'Usage' and 'Attributes' Rows in this table below (Ironically from a paper on how to use proc report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mcook_2-1633466331113.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64382i0ECEBBC5E19A2D6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mcook_2-1633466331113.png" alt="mcook_2-1633466331113.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also.&amp;nbsp; Is it possible to remove only certain vertical lines?&amp;nbsp; For example.&amp;nbsp; Remove the Vertical Lines separating 'Name' from 'Age', and 'Age' from 'Height'.&amp;nbsp; While leaving the rest?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:43:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772285#M245207</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-05T20:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772290#M245211</link>
      <description>&lt;P&gt;You need PROC REPORT statement option SPANROWS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772290#M245211</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2021-10-05T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772292#M245212</link>
      <description>Line colours, width and spacing is controlled with the STYLE options. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Oct 2021 20:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772292#M245212</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-05T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772317#M245217</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Is this what you need to produce?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1633476818410.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64388i398DA17F126F1ED4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1633476818410.png" alt="Cynthia_sas_0-1633476818410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 23:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772317#M245217</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-05T23:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772318#M245218</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt; says SPANROWS to get the group variables in a single "cell". Style with Vjust (vertical justification) to center.&lt;/P&gt;
&lt;P&gt;To remove one side of cell border you can set adjacent border widths to zero (need both as each cell draws its own border). If you want the border removed between the column headings you would remove the (column) part of the Style override, otherwise the Name and Age headers in the example below will still have the vertical line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;proc report data=SASHELP.Class SPANROWS&lt;BR /&gt;Style(Report) = [Frame=Below];&lt;BR /&gt;Column Sex Name Age Height Weight;&lt;BR /&gt;Define Sex / Group Center style=[Vjust=center] ;&lt;BR /&gt;Define Name / Style(Column)=[CellWidth=0.75in borderrightwidth=0] CENTER;&lt;BR /&gt;Define Age / Style(Column)=[CellWidth=0.75in borderleftwidth=0] CENTER ;&lt;BR /&gt;Define Height / Style(Column)=[CellWidth=0.75in] CENTER;&lt;BR /&gt;Define Weight / Style(Column)=[CellWidth=0.75in] CENTER;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;This will make any group variable span the rows though. So if you have multiple Group variables this might not be what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 23:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772318#M245218</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-10-05T23:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772409#M245258</link>
      <description>I was able to remove specified vertical lines with borderleftcolor=white and borderrightcolor=white.  But this leaves a small gap in the horizontal row lines, where the vertical line is now white..   I tried to put in borderbottomcolor=black to compensate, but it does not.   Are those the style options you were referring to?</description>
      <pubDate>Wed, 06 Oct 2021 12:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772409#M245258</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772416#M245261</link>
      <description>I added your borderrightwidth and borderleftwidth=0 , but it does not get rid of the lines.&lt;BR /&gt;also tried borderrightwidth and borderleftwidth = 0pt.  Still no change.</description>
      <pubDate>Wed, 06 Oct 2021 13:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772416#M245261</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772444#M245271</link>
      <description>&lt;P&gt;from&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1pt77toue3iyun0z4l9gth5as9f.htm" target="_self"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsproc/p1pt77toue3iyun0z4l9gth5as9f.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BorderLeftWidth=Dimension&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;specifies the width of the left border of the table or cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Dimension is a whole number, a percentage, or nonnegative number followed by unit of measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;So Borderleftwidth=0&amp;nbsp; is not a valid dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772444#M245271</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772446#M245272</link>
      <description>oh wait.  i read non negative as non zero.  My fault.  &lt;BR /&gt;&lt;BR /&gt;I agree that borderleftwidth=0pt,  or 0in,  etc.. should work.</description>
      <pubDate>Wed, 06 Oct 2021 14:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772446#M245272</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772450#M245275</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Before you start playing with bordercolor and border width, I recommend experimenting with RULES, FRAME and CELLSPACING to see if that provides the look you want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1633531261352.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64405iD7F9D05119854809/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1633531261352.png" alt="Cynthia_sas_0-1633531261352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(All output ODS RTF -- same code as in previous screen shot with only style(report) overrides changed as shown.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772450#M245275</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-06T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772497#M245291</link>
      <description>All of those seem to get rid of all interior lines.  I only want to remove certain ones.</description>
      <pubDate>Wed, 06 Oct 2021 17:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772497#M245291</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T17:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772506#M245295</link>
      <description>Hi:&lt;BR /&gt;  You're right. All of those get rid of interior lines because of the RULES=NONE override. There are other possible values for the RULES attribute. You can have RULES=NONE, as I show,. Also, RULES=ALL (the default), RULES=ROWS, RULES=COLS, and RULES=GROUPS. Those can be combined with the possible values for FRAME= to customize the look. Then, if none of those combinations can work for you, you can experiment with bordercolor and borderwidth.&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 06 Oct 2021 17:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772506#M245295</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-06T17:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772565#M245316</link>
      <description>&lt;P&gt;Using Rules=Rows to to give me just the rows, and adding in manually all the vertical ones I want does get me closer to what i am looking for.&amp;nbsp; However not quite.&amp;nbsp; it leaves white spaces in the header where the missing vertical lines would go.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is my current code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="FilesPath\TestRTF.rtf";
options nodate nonumber;

proc report data=SASHELP.Class spanrows

Style(Report) = [Rules=Rows Frame=HSides 
					pretext='Table1.1 Temp Title' Just=left
					font=('Times New Roman', 12pt, bold)];

Column Sex Name Age Height Weight;
Define Sex / Group Center style(column)=[Vjust=Center];
Define Name / style=[borderleftwidth=1pt] CENTER;
Define Age /  style=[borderrightwidth=1pt] CENTER ;
Define Height / Style(Column)=[CellWidth=0.75in] CENTER;
Define Weight / Style(Column)=[CellWidth=0.75in] CENTER;
run;
ods rtf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This outputs the below table.&amp;nbsp; How do remove the white vertical bars between name|age and height|weight?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mcook_0-1633551281501.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64426iF6A57655C607320B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mcook_0-1633551281501.png" alt="mcook_0-1633551281501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much Appreciation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772565#M245316</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-06T20:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772568#M245317</link>
      <description>Do you need to apply those to the HEADER as well as the REPORT?&lt;BR /&gt;Ie Style(HEADER) = .....</description>
      <pubDate>Wed, 06 Oct 2021 20:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772568#M245317</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-06T20:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772598#M245332</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Remember that a cell has borders on ALL sides. So if you are going to change one border to be black, then you've got to change the other border to be the same as the background color (in this case, the color GRAYBB, which is the same as CXBBBBBB. This worked for me:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1633564777434.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64431iF7F19A154E3D3BD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1633564777434.png" alt="Cynthia_sas_0-1633564777434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 23:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772598#M245332</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-06T23:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772695#M245379</link>
      <description>&lt;P&gt;Ah yes, that is exactly what I want.&amp;nbsp; And it was actually the first thing i was going to try this morning.&amp;nbsp; But it just seemed a long, piecemeal way to go about it.&amp;nbsp; I was assuming SAS would have a more generalized way to accomplish it.&amp;nbsp; But if not, this does the trick.&amp;nbsp; Thank you so much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772695#M245379</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-07T12:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Proc Report Help.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772776#M245403</link>
      <description>You can put a style(header) on your PROC REPORT line, but because you're controlling the colors of each column individually in this case you cannot simplify it. Basically when you want options to control all the details, then you have to specify all the details &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-Proc-Report-Help/m-p/772776#M245403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-07T14:57:39Z</dc:date>
    </item>
  </channel>
</rss>

