<?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 span header proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/span-header-proc-report/m-p/266374#M15725</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the proc report , and would like displaying 1 or 2 , 3 …or &amp;nbsp;several levels of spans headers&lt;/P&gt;&lt;P&gt;I would like that the lines of each span header to be separated for the different modalities with a black space&lt;/P&gt;&lt;P&gt;I can do that if I have one level of span header &amp;nbsp;, but not beyond of one level &amp;nbsp;=&amp;gt; this is my issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;The two programs bellow illustrate the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One span header :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the line of the span header is separated by blank space for each modalities &lt;STRONG&gt;( header11 header12 header13 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data class;
	set sashelp.class;
	attrib _empty length=$1;
	_empty='';
run;

ods rtf;
ods escapechar='^';
GOPTIONS DEVICE=SASPRTC;

proc report data=class headline headskip split="$" missing 
	style(header)= [background=white borderbottomcolor=black borderbottomwidth=0.1pt just=center vjust=top] contents=""
	style(report)=[ frame=hsides
	rules=group
	cellpadding=1pt
	cellspacing=.15pt
	borderwidth=.15pt];
	column 
		('header11' age Height) 
		('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header12' Name Sex) 
		('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header21' Weight );
	define _empty/' ' style(column)={cellwidth=10 };
	define age / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Height / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Name / order=data style(column)=[cellwidth=1.5 in just=center];
	define Sex / order=data style(column)=[cellwidth=1.5 in just=center];
	define Weight / order=data style(column)=[cellwidth=1.5 in just=Left];
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2929i17C5B2F6B17989B2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="One_span_header_level.JPG" title="One_span_header_level.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tow span header&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the line of the span header is separated by blank space for each modalities &amp;nbsp;&lt;STRONG&gt;( header11 header12 header21 ) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But not for the second level modalities &lt;STRONG&gt;( header11 header12 header21 ) &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	attrib _empty length=$1;
	_empty='';
run;

ods rtf;
ods escapechar='^';
GOPTIONS DEVICE=SASPRTC;

proc report data=class headline headskip split="$" missing 
	style(header)= [background=white borderbottomcolor=black borderbottomwidth=0.1pt just=center vjust=top] contents=""
	style(report)=[ frame=hsides
	rules=group
	cellpadding=1pt
	cellspacing=.15pt
	borderwidth=.15pt];
	column 
		('header1'
			('header11' age Height) 
				('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
			('header12' Name Sex) 
				('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		)
			('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header2' 
			('header21' Weight )

		)
		
			;
	define _empty/' ' style(column)={cellwidth=10 };
	define age / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Height / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Name / order=data style(column)=[cellwidth=1.5 in just=center];
	define Sex / order=data style(column)=[cellwidth=1.5 in just=center];
	define Weight / order=data style(column)=[cellwidth=1.5 in just=Left];
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2930i51EEA002225FDFEC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Tow_span_header_level.JPG" title="Tow_span_header_level.JPG" /&gt;&lt;/P&gt;&lt;P&gt;thak you for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regard&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 13:54:14 GMT</pubDate>
    <dc:creator>reznac</dc:creator>
    <dc:date>2016-04-26T13:54:14Z</dc:date>
    <item>
      <title>span header proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/span-header-proc-report/m-p/266374#M15725</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the proc report , and would like displaying 1 or 2 , 3 …or &amp;nbsp;several levels of spans headers&lt;/P&gt;&lt;P&gt;I would like that the lines of each span header to be separated for the different modalities with a black space&lt;/P&gt;&lt;P&gt;I can do that if I have one level of span header &amp;nbsp;, but not beyond of one level &amp;nbsp;=&amp;gt; this is my issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;The two programs bellow illustrate the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One span header :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the line of the span header is separated by blank space for each modalities &lt;STRONG&gt;( header11 header12 header13 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data class;
	set sashelp.class;
	attrib _empty length=$1;
	_empty='';
run;

ods rtf;
ods escapechar='^';
GOPTIONS DEVICE=SASPRTC;

proc report data=class headline headskip split="$" missing 
	style(header)= [background=white borderbottomcolor=black borderbottomwidth=0.1pt just=center vjust=top] contents=""
	style(report)=[ frame=hsides
	rules=group
	cellpadding=1pt
	cellspacing=.15pt
	borderwidth=.15pt];
	column 
		('header11' age Height) 
		('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header12' Name Sex) 
		('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header21' Weight );
	define _empty/' ' style(column)={cellwidth=10 };
	define age / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Height / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Name / order=data style(column)=[cellwidth=1.5 in just=center];
	define Sex / order=data style(column)=[cellwidth=1.5 in just=center];
	define Weight / order=data style(column)=[cellwidth=1.5 in just=Left];
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2929i17C5B2F6B17989B2/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="One_span_header_level.JPG" title="One_span_header_level.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tow span header&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here the line of the span header is separated by blank space for each modalities &amp;nbsp;&lt;STRONG&gt;( header11 header12 header21 ) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But not for the second level modalities &lt;STRONG&gt;( header11 header12 header21 ) &lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	attrib _empty length=$1;
	_empty='';
run;

ods rtf;
ods escapechar='^';
GOPTIONS DEVICE=SASPRTC;

proc report data=class headline headskip split="$" missing 
	style(header)= [background=white borderbottomcolor=black borderbottomwidth=0.1pt just=center vjust=top] contents=""
	style(report)=[ frame=hsides
	rules=group
	cellpadding=1pt
	cellspacing=.15pt
	borderwidth=.15pt];
	column 
		('header1'
			('header11' age Height) 
				('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
			('header12' Name Sex) 
				('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		)
			('^S={borderbottomcolor=white borderbottomwidth=2}' _empty)
		('header2' 
			('header21' Weight )

		)
		
			;
	define _empty/' ' style(column)={cellwidth=10 };
	define age / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Height / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Name / order=data style(column)=[cellwidth=1.5 in just=center];
	define Sex / order=data style(column)=[cellwidth=1.5 in just=center];
	define Weight / order=data style(column)=[cellwidth=1.5 in just=Left];
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2930i51EEA002225FDFEC/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Tow_span_header_level.JPG" title="Tow_span_header_level.JPG" /&gt;&lt;/P&gt;&lt;P&gt;thak you for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regard&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/span-header-proc-report/m-p/266374#M15725</guid>
      <dc:creator>reznac</dc:creator>
      <dc:date>2016-04-26T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: span header proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/span-header-proc-report/m-p/278138#M16131</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check this. I made little change in your code and replaced RTF Tags&lt;/P&gt;
&lt;PRE&gt;data class;
	set sashelp.class;
	attrib _empty length=$1;
	_empty='';
run;

ods rtf;
ods escapechar='^';
GOPTIONS DEVICE=SASPRTC;

proc report data=class headline headskip split="$" missing nowd ps=54
	style(header)= [background=white protectspecialchars = off just=center vjust=top] contents=""
	style(report)=[ frame=hsides
	rules=group
	cellpadding=1pt
	cellspacing=.15pt
	borderwidth=.15pt];
	column 
		('\brdrb\brdrs header1'
			('\brdrb\brdrs header11' age Height) 
				_empty
			('\brdrb\brdrs header12' Name Sex) 
		)
        _empty
		('\brdrb\brdrs header2' 
			('\brdrb\brdrs header21' Weight )

		)
		
			;
	define _empty/' ' style(column)={cellwidth=10 };
	define age / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Height / order=data style(column)=[cellwidth=1.5 in just=Left];
	define Name / order=data style(column)=[cellwidth=1.5 in just=center];
	define Sex / order=data style(column)=[cellwidth=1.5 in just=center];
	define Weight / order=data style(column)=[cellwidth=1.5 in just=Left];
run;

ods rtf close;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Jun 2016 09:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/span-header-proc-report/m-p/278138#M16131</guid>
      <dc:creator>Rajaram</dc:creator>
      <dc:date>2016-06-17T09:39:48Z</dc:date>
    </item>
  </channel>
</rss>

