<?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: Merge cell headers vertically in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/856329#M26170</link>
    <description>&lt;P&gt;I'm looking for this too, haven´t had any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this header,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_2-1675109593950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79936iBFC781E31A8C73CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_2-1675109593950.png" alt="yascm_2-1675109593950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want this header,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_3-1675109717606.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79937i1C0ED778EC12F5E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_3-1675109717606.png" alt="yascm_3-1675109717606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 20:15:45 GMT</pubDate>
    <dc:creator>yascm</dc:creator>
    <dc:date>2023-01-30T20:15:45Z</dc:date>
    <item>
      <title>Merge cell headers vertically in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/826640#M25881</link>
      <description>&lt;P&gt;I only have subheaders for select columns. For the columns that there are no subheaders, I would prefer there to be one singular cell.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Current Output:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="704"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TD width="281"&gt;
&lt;P&gt;Study Day&lt;SUP&gt;a&lt;/SUP&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="3" width="422"&gt;
&lt;P&gt;Treatment Groups&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="281"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Group A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Group B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Total&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Want:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE width="704"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TD rowspan="2" width="281"&gt;
&lt;P&gt;Study Day&lt;SUP&gt;a&lt;/SUP&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="3" width="422"&gt;
&lt;P&gt;Treatment Groups&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Group A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Group B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="141"&gt;
&lt;P&gt;Total&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;EM&gt;Note:&lt;/EM&gt; Study Day spans two columns which are defined by day (e.g. Day 1, Day 2, etc) and the milestone (e.g. Blood Draw 1). Treatment groups are each one column and contain counts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let title= %str(Study Status: Number of Subjects Completing Study Milestones);

%report(2C_milestone);
proc report data= _milestone nowd split= '|' %reportstyle;
 columns ("Study Day^{super a}" milestone milestone2) ("Treatment Groups" a b /*c d e*/ f);
 	define milestone  / "" order= internal format= dy.  style(column)= [just= left vjust= t];
	define milestone2 / "" order= internal format= mil. style(column)= [just= left vjust= t];
	define a 		  / "Group A" center;
	define b 		  / "Group B"	center;
	/*define c 		  / "Group C" center;*/
	/*define d 		  / "Group D"	center;*/
	/*define e 		  / "Group E" center;*/
	define f 		  / "Total"	center;

 compute after / style= [just= l];
 	line "Note: Percentages reflective of ongoing status of the trial.";
	line "^{super a} The study schedule for Group C differs from Groups A, B, D, and E.
 When Study Day differs between treatment groups, the Study Day is listed for Groups A, B, D, and E followed by the Study Day for Group C.";
 endcomp;
run;

ods word close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;%report defines options, layout, and ods word file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	ods word file= "&amp;amp;file.\&amp;amp;filename..docx" style= cword startpage= no options(cant_split= 'on' keep_next= 'off' keep_lines= 'on');
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;%reportstyle defines font style and size.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro reportstyle;
	style(report)=[cellspacing=0 width=100%]
	style(header)=[just=center vjust=b font_size=9pt fontfamily="Times New Roman"]
	style(column)=[just=center vjust=b font_size=9pt fontfamily="Times New Roman"]
	style(lines)=[bordercolor=black];
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/826640#M25881</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2022-08-02T14:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cell headers vertically in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/827072#M25883</link>
      <description>I'm not sure if this can be achieved in proc report. Proc document (ODS) would allow to do colspan and rowspan for the header. See example 3: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsadvug/p1ki00t96zkir2n1g6l4eczqbgrk.htm#n1x72n4is4bey5n1nr66oduuij5u" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsadvug/p1ki00t96zkir2n1g6l4eczqbgrk.htm#n1x72n4is4bey5n1nr66oduuij5u&lt;/A&gt;</description>
      <pubDate>Thu, 04 Aug 2022 09:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/827072#M25883</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-08-04T09:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cell headers vertically in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/856329#M26170</link>
      <description>&lt;P&gt;I'm looking for this too, haven´t had any success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this header,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_2-1675109593950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79936iBFC781E31A8C73CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_2-1675109593950.png" alt="yascm_2-1675109593950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want this header,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_3-1675109717606.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79937i1C0ED778EC12F5E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_3-1675109717606.png" alt="yascm_3-1675109717606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 20:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/856329#M26170</guid>
      <dc:creator>yascm</dc:creator>
      <dc:date>2023-01-30T20:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cell headers vertically in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/857914#M26177</link>
      <description>Hi, Unfortunately, your screen shot is too small to see. Even using the Zoom function, the headers become all pixellated and not readable. Also, the white font on the current background is also unreadable. It looks like the suggestion posted was for an HTML/CSS solution and I'm not sure that would work for ODS WORD or ODS RTF. Microsoft designed their own version of CSS that was different than the CSS used with HTML, so that might now work. You might have to move to the Report Writing Interface to get the type of headers you want. But without your code AND your data or some dummy data to test with, it's hard to do more than make a comment.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 09 Feb 2023 01:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/857914#M26177</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-02-09T01:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge cell headers vertically in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/857918#M26178</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/288013"&gt;@yascm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm looking for this too, haven´t had any success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this header,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_2-1675109593950.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79936iBFC781E31A8C73CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_2-1675109593950.png" alt="yascm_2-1675109593950.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want this header,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yascm_3-1675109717606.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79937i1C0ED778EC12F5E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yascm_3-1675109717606.png" alt="yascm_3-1675109717606.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Start your own question, provide some example data in the form of a data step and your code. Since it appears that you may be playing with ODS Style options include your entire ODS destination code as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: displaying something where every single value is Text doesn't give much clue as to what is going on.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 01:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merge-cell-headers-vertically-in-proc-report/m-p/857918#M26178</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-09T01:11:27Z</dc:date>
    </item>
  </channel>
</rss>

