<?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: How Can I Merge Cells in RTF Output (SAS 9.3)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/565863#M158929</link>
    <description>&lt;P&gt;Consider&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman"}
    style(report)={rules=groups frame=hsides borderwidth=0.5pt bordercolor=black}
    ;
    column
        ("AAAAA" column1)
        
        ("BBB+CCC" column2 column3 )
            ;
    define column1 / display "" ;
    define column2 / display "";
    define column3 / display "";
run;
quit;
&lt;/PRE&gt;
&lt;P&gt;Mixing the way you define the column headings between DEFINE and COLUMN statements is adding the additional row,&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 14:39:36 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-06-13T14:39:36Z</dc:date>
    <item>
      <title>How Can I Merge Cells in RTF Output (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/565807#M158912</link>
      <description>&lt;P&gt;Hi, All:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate output like this in RTF Output, which has one merged cell (Column No.2 + Column No. 3)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex1.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30253iDE1FF377B29DC445/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ex1.PNG" alt="ex1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think nested structure in column statement is one of solutions, but I do not know how to write code.&lt;/P&gt;&lt;P&gt;I attached example code. Please help me.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length column1-column3 $200.;
    column1="aaaaa"; column2="bbbbb"; column3="ccccc"; output;
run;
ods rtf file="SpecifyYourFolder\test.rtf";
proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman"}
    style(report)={rules=groups frame=hsides borderwidth=0.5pt bordercolor=black}
    ;
    column
        column1
        (
        "BBB+CCC" column2 column3
        )
    ;
    define column1 / display "AAAAA";
    define column2 / display "";
    define column3 / display "";
run;
quit;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 11:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/565807#M158912</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-13T11:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Merge Cells in RTF Output (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/565863#M158929</link>
      <description>&lt;P&gt;Consider&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=test nowindows
    style(header)={backgroundcolor=white fontweight=light fontsize=8pt fontfamily="Times New Roman"}
    style(report)={rules=groups frame=hsides borderwidth=0.5pt bordercolor=black}
    ;
    column
        ("AAAAA" column1)
        
        ("BBB+CCC" column2 column3 )
            ;
    define column1 / display "" ;
    define column2 / display "";
    define column3 / display "";
run;
quit;
&lt;/PRE&gt;
&lt;P&gt;Mixing the way you define the column headings between DEFINE and COLUMN statements is adding the additional row,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/565863#M158929</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-13T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Merge Cells in RTF Output (SAS 9.3)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/566095#M159040</link>
      <description>&lt;P&gt;Hi, ballardw-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick reply. Your code worked for me.&lt;/P&gt;&lt;P&gt;Yes, I had trouble with additional row that I do not intend.&lt;/P&gt;&lt;P&gt;Thanks to your explanation, I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for giving details!!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 00:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-Can-I-Merge-Cells-in-RTF-Output-SAS-9-3/m-p/566095#M159040</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-06-14T00:34:12Z</dc:date>
    </item>
  </channel>
</rss>

