<?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: Merging Cells Vertically in PROC REPORT PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86189#M9158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I think that you might be trying to overcontrol the border lines. If you use SPANROWS, there are not any divider lines in the row header that spans the rows for the group, so there's no real need to turn anything off in that column. For example, in the example, below, I make all the fonts 3pt, except for the font for PRODUCT, which is&amp;nbsp; 6pt. I do not see the distortion that you experience with SPANROWS and the code described in the Tech Support note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think your best bet for help is to work with Tech Support. They can look at all of your data, and at your entire program and help you figure out what the issue is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;options orientation=portrait topmargin=.5in bottommargin=.5in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rightmargin=.5in leftmargin=.5in;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods pdf file='c:\temp\testfont.pdf' notoc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc report data=sashelp.shoes nowd spanrows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_size=3pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_size=3pt};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; title '2) specify spanrows with cellwidth and cellheight';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; where region = 'Canada' and product in ('Boot', 'Sandal', 'Slipper');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; column region product sales inventory returns stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define region / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define product / order&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_size=6pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_size=6pt cellwidth=.5in cellheight=.2in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define sales / 'Mon';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define inventory / 'Tues';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define returns / 'Wed';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define stores / 'Thurs';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define subsidiary / 'Fri';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 03:11:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-06-20T03:11:39Z</dc:date>
    <item>
      <title>Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86184#M9153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a rather unique question regarding PROC REPORT and ODS PDF. I have currently assembled a schedule-like table using PROC REPORT and in order to make this table fit on one page, I have to reduce the font size down to 3pt. While everything at this point looks alright, it also forces the text in my groups to be at 3pt as well. Since the text in the group column needs to be readable, I want to be able to increase the font size. Just adding a style line to increase the font stretches the row which distorts the scale of the schedule, so merging the cell with the text with the cell below (the report is using SPANROWS and there is plenty of space between the groups) so I can utilize that blank space without stretching out the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASCII Visual&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hour&lt;/STRONG&gt; |&lt;STRONG&gt; Monday&lt;/STRONG&gt; | ...&lt;/P&gt;&lt;P&gt;---------|-------------|&lt;/P&gt;&lt;P&gt;7:00&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;---------|-------------|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;---------|-------------|&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hour&lt;/STRONG&gt; |&lt;STRONG&gt; Monday&lt;/STRONG&gt; | ...&lt;/P&gt;&lt;P&gt;---------|-------------|&lt;/P&gt;&lt;P&gt;7:00&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |-------------|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;---------|-------------|&lt;/P&gt;&lt;P&gt;(Assume the "7:00" can stretch further into the space between the two cells)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can figure this out, or point me to a reasonable alternative (I am using ODS REGION to put this next to another table) I would greatly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 16:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86184#M9153</guid>
      <dc:creator>JRUCF</dc:creator>
      <dc:date>2012-06-18T16:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86185#M9154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try looking at the spanrows options in proc report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/resources/papers/proceedings11/246-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/246-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/246-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='c:\spanrows.pdf';&lt;/P&gt;&lt;P&gt;proc report nowd data= spanrows_example spanrows;&lt;/P&gt;&lt;P&gt;col sex age name height weight;&lt;/P&gt;&lt;P&gt;define sex / order;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 17:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86185#M9154</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-06-18T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86186#M9155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm already using spanrows and used the PDF you linked to heavily for the rest of the report. While spanrows gives me the appropriate look, all it does is hide the extra borderlines and instances of duplicate group values. The cell issue as I described in my original diagram still persists even though the visuals imply otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 18:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86186#M9155</guid>
      <dc:creator>JRUCF</dc:creator>
      <dc:date>2012-06-18T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86187#M9156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Spanrows and PDF has a known issue where the first row of a group gets extra space added to it, as described in this Tech Support note:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/45/549.html"&gt;http://support.sas.com/kb/45/549.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It's hard for me to envision what you mean by "distorts the scale", since your drawing seems to me to show what you want, not what you're getting. And, since you didn't post your code, it's hard to tell whether the fix described in the Tech Support note is something you already tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If trying both cellwidth and cellheight do not work for you, as described in the Tech Support note (they have code that illustrates both the problem and the fix), then I'd recommend opening a track with Tech Support. They can look at all your code and help you figure out whether you have discovered a new problem or figure out if there's a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 21:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86187#M9156</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-18T21:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86188#M9157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In theory that support should work, but I'm not sure if a larger font falls into the same guidelines of long text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following image shows the distortion. The horizontal gridlines are present to make it easier to see. The line with the '10' is in 6pt font which stretches the first row of the hour while the remaining rows stay in 3pt font. If I bring the '10' back to 3pt it will all look proper.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SASIssue.png" class="jive-image" height="108" src="https://communities.sas.com/legacyfs/online/2169_SASIssue.png" width="178" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the code, I am only including a part of the code as the rest is just toying with borders and quite lengthy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;proc report data=work.bartrans spanrows contents="&amp;amp;facil" nowd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(report)=[/*rules=none frame=void*/ cellspacing=0 cellpadding=0 fontsize=3pt]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)=[textalign=c];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column building hour obs _emptym monday _emptyt tuesday _emptyw wednesday _emptyr thursday _emptyf friday _emptys;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define hour/&amp;nbsp; order style(column) = {borderleftcolor=black borderleftwidth=3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bordertopwidth=0 borderbottomwidth=0 fontsize=6pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute hour;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_COL_, 'style', 'style=[bordertopwidth=0 borderbottomwidth=0 borderleftwidth=1 borderrightwidth=1]');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define building / noprint order;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define obs / noprint order;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define monday / 'Mon' style(column) = {background=$ticklight. foreground=$ticklight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black borderleftwidth=2 borderrightwidth=2 fontsize=1pt cellwidth=50};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define tuesday / 'Tue' width=30 style(column) = {background=$ticklight. foreground=$ticklight. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black borderleftwidth=2 borderrightwidth=2 fontsize=1pt cellwidth=50};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define wednesday / 'Wed' width=30 style(column) = {background=$ticklight. foreground=$ticklight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black borderleftwidth=2 borderrightwidth=2 fontsize=1pt cellwidth=50};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define thursday / 'Thr' width=30 style(column) = {background=$ticklight. foreground=$ticklight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black borderleftwidth=2 borderrightwidth=2 fontsize=1pt cellwidth=50};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define friday / 'Fri' width=30 style(column) = {background=$ticklight. foreground=$ticklight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black borderleftwidth=2 borderrightwidth=2 fontsize=1pt cellwidth=50};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compute obs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if obs &amp;lt; 5 or obs &amp;gt; 180 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_ROW_, 'style', 'style=[borderleftwidth=0 borderrightwidth=0]');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if obs = 5 or obs = 41 or obs = 77 or obs = 113 or obs = 131 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_ROW_, 'style', 'style=[borderbottomcolor = black borderbottomwidth=2 borderleftwidth=0 borderrightwidth=0]');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if obs = 40 or obs = 76 or obs = 112&amp;nbsp; or obs = 130 or obs = 180 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define(_ROW_, 'style', 'style=[bordertopcolor = black bordertopwidth=2 borderleftwidth=0 borderrightwidth=0]');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptym/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptyt/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptyw/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptyr/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptyf/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define _emptys/' ' style(column) = {cellwidth=1%&amp;nbsp;&amp;nbsp;&amp;nbsp; borderleftcolor=black bordertopwidth=0 borderbottomwidth=0 borderleftwidth=0 borderrightwidth=0 fontsize=3pt};&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 16:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86188#M9157</guid>
      <dc:creator>JRUCF</dc:creator>
      <dc:date>2012-06-19T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Cells Vertically in PROC REPORT PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86189#M9158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I think that you might be trying to overcontrol the border lines. If you use SPANROWS, there are not any divider lines in the row header that spans the rows for the group, so there's no real need to turn anything off in that column. For example, in the example, below, I make all the fonts 3pt, except for the font for PRODUCT, which is&amp;nbsp; 6pt. I do not see the distortion that you experience with SPANROWS and the code described in the Tech Support note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think your best bet for help is to work with Tech Support. They can look at all of your data, and at your entire program and help you figure out what the issue is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;options orientation=portrait topmargin=.5in bottommargin=.5in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rightmargin=.5in leftmargin=.5in;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods pdf file='c:\temp\testfont.pdf' notoc;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;proc report data=sashelp.shoes nowd spanrows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_size=3pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_size=3pt};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; title '2) specify spanrows with cellwidth and cellheight';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; where region = 'Canada' and product in ('Boot', 'Sandal', 'Slipper');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; column region product sales inventory returns stores;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define region / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define product / order&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_size=6pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_size=6pt cellwidth=.5in cellheight=.2in};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define sales / 'Mon';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define inventory / 'Tues';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define returns / 'Wed';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define stores / 'Thurs';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp; define subsidiary / 'Fri';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;ods pdf close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 03:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-Cells-Vertically-in-PROC-REPORT-PDF/m-p/86189#M9158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-20T03:11:39Z</dc:date>
    </item>
  </channel>
</rss>

