<?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 output Table headers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700460#M214362</link>
    <description>&lt;PRE&gt;options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase nofmterr nobyline;

data class;
set sashelp.class;
col1= name;
col2= sex;
col3= age;
col4= height;
col5= weight;
run;

ods escapechar = '^';
ods noresults; 
ods listing close; 
ods rtf file = "c:\temp\class.rtf"  style = table_rtf; 
proc report data =class ls = 145 ps = 55  missing nowindows split='|'
	         headskip headline    
	         style(report)=[bordertopcolor=black bordertopwidth=2] style(header)=[asis=on just=c vjust=t fontweight=bold 
							font_face= "Times New Roman" background=white borderbottomcolor=black fontsize=9pt];  

	** titles **;
	title1 j = l "class." j = r  'Page ^{thispage} of ^{lastpage}';; 
	title2 j = l "sas";
	title3 j = l "created:&amp;amp;sysdate9 &amp;amp;systime";
	title4 j = c "Table ";
	title5 j = c "SaS class";
	title6 j = c "Practice";
	** report **;
	column  (("First Name ^R/RTF'\brdrb\brdrs\li100\ri100' " col1 col2)("Statistics ^R/RTF'\brdrb\brdrs\li100\ri100' " col3-col5));
									

	define col1		/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Name"			 ;
	define col2 	/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Sex";
	define col3     /group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Age"	;
	define col4 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Height"			;
	define col5 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Weight ";

compute before/style(lines)={asis=on just=l};
line '              xxxxxxxxxxxxx                                yyyyyyyyyyyyyyyyyy';
endcomp;
	
run;
ods rtf close;
ods listing close;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Nov 2020 13:16:49 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-11-20T13:16:49Z</dc:date>
    <item>
      <title>ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700315#M214308</link>
      <description>&lt;P&gt;I am creating a table using&amp;nbsp; particular style according to my requirement. I am having trouble how I can achieve the header that's highlighted in&amp;nbsp; yellow. I have the sample code with out the header highlighted in yellow. Any suggestions? Thanks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1605815191704.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51846i07539E78EB5C8A86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1605815191704.png" alt="SASuserlot_0-1605815191704.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase nofmterr nobyline;

data class;
set sashelp.class;
col1= name;
col2= sex;
col3= age;
col4= height;
col5= weight;
run;

ods escapechar = '^';
ods noresults; 
ods listing close; 
ods rtf file = "C:\Users\xx\Desktop\Newfolder\class.rtf"  style = table_rtf; 
proc report data =class ls = 145 ps = 55  missing nowindows split='|'
	         headskip headline    
	         style(report)=[bordertopcolor=black bordertopwidth=2] style(header)=[asis=on just=c vjust=t fontweight=bold 
							font_face= "Times New Roman" background=white borderbottomcolor=black fontsize=9pt];  

	** titles **;
	title1 j = l "class." j = r  'Page ^{thispage} of ^{lastpage}';; 
	title2 j = l "sas";
	title3 j = l "created:&amp;amp;sysdate9 &amp;amp;systime";
	title4 j = c "Table ";
	title5 j = c "SaS class";
	title6 j = c "Practice";
	** report **;
	column  (("First Name ^R/RTF'\brdrb\brdrs\li100\ri100' " col1 col2)("Statistics ^R/RTF'\brdrb\brdrs\li100\ri100' " col3-col5));
									

	define col1		/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Name"			 ;
	define col2 	/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Sex";
	define col3     /group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Age"	;
	define col4 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Height"			;
	define col5 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Weight ";
		
run;
ods rtf close;
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700315#M214308</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-19T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700334#M214319</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312" target="_blank"&gt;SASuserlot&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find your table to be confusing (not well designed). I suggest placing &lt;STRONG&gt;Personal Information&lt;/STRONG&gt; instead of &lt;STRONG&gt;First Name, &lt;/STRONG&gt;and placing &lt;STRONG&gt;Age vs. BMS&lt;/STRONG&gt; instead of &lt;STRONG&gt;Statistics&lt;/STRONG&gt;. Then you can get rid of that highlighted line altogether. You may replace &lt;STRONG&gt;Name&lt;/STRONG&gt; with &lt;STRONG&gt;First Name&lt;/STRONG&gt; if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 20:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700334#M214319</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2020-11-19T20:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700350#M214325</link>
      <description>&lt;P&gt;Thanks for your suggestion and sorry if it caused any confusion . However I am not focused on the design, I am more focused on&amp;nbsp; "how I can get a&amp;nbsp; line&amp;nbsp; and the highlighted headers" below the "name and sex header, age vs BMS header below the age. height, weight headers . I given the names Personal&amp;nbsp; information or Age Vs BMS just for sample, it can be any thing for that matter. Is it possible at all!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 21:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700350#M214325</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-19T21:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700460#M214362</link>
      <description>&lt;PRE&gt;options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase nofmterr nobyline;

data class;
set sashelp.class;
col1= name;
col2= sex;
col3= age;
col4= height;
col5= weight;
run;

ods escapechar = '^';
ods noresults; 
ods listing close; 
ods rtf file = "c:\temp\class.rtf"  style = table_rtf; 
proc report data =class ls = 145 ps = 55  missing nowindows split='|'
	         headskip headline    
	         style(report)=[bordertopcolor=black bordertopwidth=2] style(header)=[asis=on just=c vjust=t fontweight=bold 
							font_face= "Times New Roman" background=white borderbottomcolor=black fontsize=9pt];  

	** titles **;
	title1 j = l "class." j = r  'Page ^{thispage} of ^{lastpage}';; 
	title2 j = l "sas";
	title3 j = l "created:&amp;amp;sysdate9 &amp;amp;systime";
	title4 j = c "Table ";
	title5 j = c "SaS class";
	title6 j = c "Practice";
	** report **;
	column  (("First Name ^R/RTF'\brdrb\brdrs\li100\ri100' " col1 col2)("Statistics ^R/RTF'\brdrb\brdrs\li100\ri100' " col3-col5));
									

	define col1		/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Name"			 ;
	define col2 	/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Sex";
	define col3     /group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Age"	;
	define col4 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Height"			;
	define col5 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Weight ";

compute before/style(lines)={asis=on just=l};
line '              xxxxxxxxxxxxx                                yyyyyyyyyyyyyyyyyy';
endcomp;
	
run;
ods rtf close;
ods listing close;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Nov 2020 13:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700460#M214362</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-20T13:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700479#M214377</link>
      <description>Thanks for your suggestion. however the output from your code different from my  actual requirement. If possible can you  please look into initial post image again. Thanks</description>
      <pubDate>Fri, 20 Nov 2020 14:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700479#M214377</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-20T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700672#M214463</link>
      <description>&lt;P&gt;Here is what I got.&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="x.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51896i24EB967C685663F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 11:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700672#M214463</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-21T11:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700674#M214465</link>
      <description>&lt;P&gt;You always have to keep in mind that how a RTF file is rendered is highly dependent on the software used to display it. Even different versions of MS Word will make it look differently.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 12:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700674#M214465</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-21T12:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700680#M214469</link>
      <description>&lt;P&gt;Opps.&lt;/P&gt;
&lt;P&gt;Forget to update the code .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options orientation = landscape errors = 2 missing = ' ' nofmterr ls = 175 validvarname = upcase nofmterr nobyline;

data class;
set sashelp.class;
col1= name;
col2= sex;
col3= age;
col4= height;
col5= weight;
run;

ods escapechar = '^';
ods noresults; 
ods listing close; 
ods rtf file = "c:\temp\class.rtf"  style = journal ; 
proc report data =class ls = 145 ps = 55  missing nowindows split='|'
	         headskip headline    
	         style(report)=[bordertopcolor=black bordertopwidth=2] style(header)=[asis=on just=c vjust=t fontweight=bold 
							font_face= "Times New Roman" background=white borderbottomcolor=black fontsize=9pt];  

	** titles **;
	title1 j = l "class." j = r  'Page ^{thispage} of ^{lastpage}';; 
	title2 j = l "sas";
	title3 j = l "created:&amp;amp;sysdate9 &amp;amp;systime";
	title4 j = c "Table ";
	title5 j = c "SaS class";
	title6 j = c "Practice";
	** report **;
	column  (("First Name ^R/RTF'\brdrb\brdrs\li100\ri100' " col1 col2)("Statistics ^R/RTF'\brdrb\brdrs\li100\ri100' " col3-col5));
									

	define col1		/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Name"			 ;
	define col2 	/group order = internal style(header) = [just=l] 	 style(column) = [just=l vjust=b cellwidth=10% asis=on]"Sex";
	define col3     /group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Age"	;
	define col4 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Height"			;
	define col5 	/group order = internal style(header) = [just=c] 	 style(column) = [just=c vjust=b cellwidth=10% asis=on]"Weight ";

compute before/style(lines)={asis=on just=l borderbottomcolor=black borderbottomwidth=2px font_weight=bold};
line '        Personal Information                      Age VS BMS';
endcomp;
	
run;
ods rtf close;
ods listing close;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Nov 2020 12:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700680#M214469</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-21T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700683#M214470</link>
      <description>&lt;P&gt;Just to illustrate my previous post:&lt;/P&gt;
&lt;P&gt;Running&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s recent code, the report looks like this&lt;/P&gt;
&lt;P&gt;in MacOS TextEdit:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-11-21 um 13.42.34.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51898i5007F51ED9949131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-11-21 um 13.42.34.png" alt="Bildschirmfoto 2020-11-21 um 13.42.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and so in LibreOffice:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-11-21 um 13.49.10.png"&gt;&lt;img src="https://communities.sas.com/skins/images/E0BB18E7DAA53C21BC28740CEA0E38DA/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-11-21 um 13.49.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 12:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700683#M214470</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-21T12:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700914#M214559</link>
      <description>Thanks for checking out for me.</description>
      <pubDate>Mon, 23 Nov 2020 14:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700914#M214559</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-23T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output Table headers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700915#M214560</link>
      <description>Thanks. This serves my purpose.</description>
      <pubDate>Mon, 23 Nov 2020 14:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-Table-headers/m-p/700915#M214560</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-11-23T14:29:51Z</dc:date>
    </item>
  </channel>
</rss>

