<?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 Merging cells in report output for the Group By Values in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48931#M6325</link>
    <description>Hello,&lt;BR /&gt;
I have a rather specific requirement. When I use Proc report to group by variables, I get an output that has the cell borders for each of the rows belonging to a group by variables. Is it possible to merge all the cells in Excel and PDF?&lt;BR /&gt;
&lt;BR /&gt;
If I have this code- &lt;BR /&gt;
&lt;BR /&gt;
proc report;&lt;BR /&gt;
column A B C D;&lt;BR /&gt;
define A / group;&lt;BR /&gt;
define B / group;&lt;BR /&gt;
define C / group;&lt;BR /&gt;
define D / display;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
In the output, the cells below each unique value of A and B are blank. I need these cells to merge into 1 cell. Hope my explanation make sense. My diagrams over here dont look good.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
saspert</description>
    <pubDate>Tue, 12 Apr 2011 21:11:49 GMT</pubDate>
    <dc:creator>saspert</dc:creator>
    <dc:date>2011-04-12T21:11:49Z</dc:date>
    <item>
      <title>Merging cells in report output for the Group By Values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48931#M6325</link>
      <description>Hello,&lt;BR /&gt;
I have a rather specific requirement. When I use Proc report to group by variables, I get an output that has the cell borders for each of the rows belonging to a group by variables. Is it possible to merge all the cells in Excel and PDF?&lt;BR /&gt;
&lt;BR /&gt;
If I have this code- &lt;BR /&gt;
&lt;BR /&gt;
proc report;&lt;BR /&gt;
column A B C D;&lt;BR /&gt;
define A / group;&lt;BR /&gt;
define B / group;&lt;BR /&gt;
define C / group;&lt;BR /&gt;
define D / display;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
In the output, the cells below each unique value of A and B are blank. I need these cells to merge into 1 cell. Hope my explanation make sense. My diagrams over here dont look good.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
saspert</description>
      <pubDate>Tue, 12 Apr 2011 21:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48931#M6325</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2011-04-12T21:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging cells in report output for the Group By Values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48932#M6326</link>
      <description>Hi:&lt;BR /&gt;
  I'm not sure what you mean when you say that you are using "Proc report to group by variables", since there was no BY statement in your code snippet.&lt;BR /&gt;
 &lt;BR /&gt;
  However, if you look at the SPANROWS option (it goes on the PROC REPORT statement), in some destinations, it will cause row spanning, as you describe. &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473620.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473620.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I know that it will work for PDF. Whether it will work for Excel depends on whether you are using ODS CSV, ODS MSOFFICE2K, or ODS TAGSETS.EXCELXP to create output files that Excel can open.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 12 Apr 2011 23:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48932#M6326</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-04-12T23:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging cells in report output for the Group By Values</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48933#M6327</link>
      <description>Maybe you need to make a computed variable and use cats() function to "need these cells to merge into 1 cell".&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 13 Apr 2011 04:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging-cells-in-report-output-for-the-Group-By-Values/m-p/48933#M6327</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-13T04:46:13Z</dc:date>
    </item>
  </channel>
</rss>

