<?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 Removing Row Lines from Spanned Rows in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773635#M25354</link>
    <description>That's quite a tedious pain in the SAS if theres more than one variable to remove the row line from.  but it does work. Thank you immensely. &lt;BR /&gt;&lt;BR /&gt;The only downside i see is that I am now running the report on all character variables, and am unable to apply a numeric format.  Is there a way to revert certain variables back to numeric and apply a format in that final data step? &lt;BR /&gt;&lt;BR /&gt;data _null_; set one; &lt;BR /&gt;file "&amp;amp;FilePath./TestRTF2.rtf";&lt;BR /&gt;put line; &lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Oct 2021 13:19:51 GMT</pubDate>
    <dc:creator>mcook</dc:creator>
    <dc:date>2021-10-12T13:19:51Z</dc:date>
    <item>
      <title>ODS RTF Removing Row Lines from Spanned Rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773001#M25346</link>
      <description>&lt;P&gt;In the following code, the first 4 steps just manipulate the SASHELP.Class dataset to illustrate my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to remove certain row lines from spanned rows as noted below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET FilePath=C:\Folder1\Folder2;

data ClassTable;
	set SASHELP.Class;
	Section="A";
run;

data ClassTable1;
	set SASHelp.Class;
	Section="B";
run;

data ClassTable;
	set ClassTable ClassTable1;
run;

proc sql noprint undo_policy=none;
	delete from ClassTable
		where Name like '%J%' and Section="B";
quit;

ods rtf file="&amp;amp;FilePath.\TestRTF.rtf";
ODS escapechar='^';
options nodate nonumber;

proc report data=ClassTable spanrows split='~'
	style(Header)=[just=l background=white]

	Style(Report) = [Rules=Rows Frame=below];
	Column ('^{Style[FontSize=12pt font_face="Times New Roman"]Table 3.2 This is my Table Title}'(Sex Name Section Age Height Weight));
	Define Sex / group 
		style(column)=[
		cellwidth=0.6in 
		Vjust=C]
		style(header)=[
		background=greybb 
		just=c
		vjust=c] center;
	Define Name / Display 'Student~Name'
	order order=internal
		style(Column)=[
		borderleftwidth=1pt
		just=c vjust=c] 
		style(Header)=[
		borderleftwidth=1pt 
		borderleftcolor=black
		borderrightwidth=1pt	
		borderrightcolor=graybb
		background=graybb 
		just=c
		vjust=c] CENTER;
	Define Section / order order=internal
		style(Column)=[
		borderleftwidth=1pt
		borderleftcolor=black
		borderrightwidth=1pt
		borderrightcolor=black
		just=c vjust=c]
		style(Header)=[
		borderleftwidth=1pt
		borderleftcolor=black
		borderrightwidth=1pt
		borderrightcolor=black
		background=greybb
		just=c
		vjust=c];
	Define Age /  
		style=[borderrightwidth=1pt]
		style(Header)=[
		borderleftwidth=1pt 
		borderleftcolor=graybb 
		borderrightwidth=1pt 
		borderrightcolor=black
		background=greybb 
		just=c
		vjust=c]
		style(Column)=[
		CellWidth=0.70in 
		borderrightwidth=1pt 
		borderrightcolor=black] CENTER;
	Define Height / 
		Style(Column)=[CellWidth=0.75in]
		style(Header)=[
		borderrightcolor=graybb 
		borderleftcolor=black
		background=greybb 
		just=c
		vjust=c] CENTER;
	Define Weight / display 'Student~^{style[fontstyle=italic]Weight}^'
		Style(Column)=[CellWidth=0.75in] 
		style(Header)=[
		borderleftcolor=graybb 
		borderrightcolor=black
		background=greybb 
		just=c
		vjust=c]	CENTER;
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A portion of the output is here.&lt;/P&gt;
&lt;P&gt;Is it possible to remove the messily highlighted row line, and all others similar?&amp;nbsp; (for Barbara, Carol, where the Student has an A and B Section)&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="InkedCapture_LI.jpg" style="width: 349px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64511iF95684794BC7867E/image-dimensions/349x248?v=v2" width="349" height="248" role="button" title="InkedCapture_LI.jpg" alt="InkedCapture_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 10:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773001#M25346</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-08T10:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Removing Row Lines from Spanned Rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773236#M25348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no medicine for the cure of this complication.&amp;nbsp; A surgery is needed.&amp;nbsp; I use your program and a different dataset zipcode from SASHELP, and ODS TAGSETS.RTF.&amp;nbsp; See the attached code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jianmin Long&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data zipcode; set sashelp.zipcode; 
keep statename city zip countynm; 

proc sort data=zipcode; 
by statename countynm city zip; 

data zipcode; set zipcode; 
by statename countynm city zip; 
length zipcode $10; 
zipcode=compress(put(zip, 10.0)); 
if last.city=0 then do; zipcode=compress(put(zip, 10.0))||'**'; end; 
run; 

ODS TAGSETS.RTF file="~/zipcode.rtf";
ODS escapechar='^';
options nodate nonumber;
proc report data=zipcode spanrows split='~'
	style(Header)=[just=l background=white]

	Style(Report) = [Rules=Rows Frame=below];
	Column ('^{Style[FontSize=12pt font_face="Times New Roman"]Table 3.2 This is my Table Title}'(Statename Countynm City Zipcode));
	Define statename / group 
		style(column)=[
		cellwidth=1.6in 
		Vjust=C]
		style(header)=[
		background=greybb 
		just=c
		vjust=c] center;
	Define countynm / Display 'County Name'
	order order=internal
		style(Column)=[
		borderleftwidth=1pt
		just=c vjust=c] 
		style(Header)=[
		borderleftwidth=1pt 
		borderleftcolor=black
		borderrightwidth=1pt	
		borderrightcolor=graybb
		background=graybb 
		just=c
		vjust=c] CENTER;
	Define City / order order=internal
		style(Column)=[
		borderleftwidth=1pt
		borderleftcolor=black
		borderrightwidth=1pt
		borderrightcolor=black
		just=c vjust=c]
		style(Header)=[
		borderleftwidth=1pt
		borderleftcolor=black
		borderrightwidth=1pt
		borderrightcolor=black
		background=greybb
		just=c
		vjust=c];
	Define Zipcode /  
		style=[borderrightwidth=1pt]
		style(Header)=[
		borderleftwidth=1pt 
		borderleftcolor=graybb 
		borderrightwidth=1pt 
		borderrightcolor=black
		background=greybb 
		just=c
		vjust=c]
		style(Column)=[
		CellWidth=0.70in 
		borderrightwidth=1pt 
		borderrightcolor=black] CENTER;
run;

ODS TAGSETS.RTF close;

data one; 
infile "~/zipcode.rtf" missover length=l end=eof lrecl=2000; 
input line $varying2000. L; 
retain n 0; 
if index(line, '**') &amp;gt; 0 then do; n=0; line=tranwrd(line, '**', ''); end; 
else do; n=n+1; end; 
if n=1 then do; line=tranwrd(line, '\clbrdrb\brdrs', ''); 
end; 
run; 

data _null_; set one; 
file "~/zipcode2.rtf";
put line; 
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 21:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773236#M25348</guid>
      <dc:creator>Jianmin</dc:creator>
      <dc:date>2021-10-09T21:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF Removing Row Lines from Spanned Rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773635#M25354</link>
      <description>That's quite a tedious pain in the SAS if theres more than one variable to remove the row line from.  but it does work. Thank you immensely. &lt;BR /&gt;&lt;BR /&gt;The only downside i see is that I am now running the report on all character variables, and am unable to apply a numeric format.  Is there a way to revert certain variables back to numeric and apply a format in that final data step? &lt;BR /&gt;&lt;BR /&gt;data _null_; set one; &lt;BR /&gt;file "&amp;amp;FilePath./TestRTF2.rtf";&lt;BR /&gt;put line; &lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2021 13:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-RTF-Removing-Row-Lines-from-Spanned-Rows/m-p/773635#M25354</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-12T13:19:51Z</dc:date>
    </item>
  </channel>
</rss>

