<?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: Proc Report merge cells of summary line. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165768#M12161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Ballardw,&lt;SPAN style="line-height: 18px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I was trying to merge cells here. I guess the border can be removed using htmlstyle=&amp;nbsp; option within the style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 21:03:08 GMT</pubDate>
    <dc:creator>Smijoss</dc:creator>
    <dc:date>2014-08-18T21:03:08Z</dc:date>
    <item>
      <title>Proc Report merge cells of summary line.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165766#M12159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using proc report to create a report, however I would like to merge the cells defined as group at the summary line.&lt;/P&gt;&lt;P&gt;Is it possible to do this using the proc report or&amp;nbsp; the htmlstyle (colspan=) in style of group vars ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current rept -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7143_1.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expected -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7142_2.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code -&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CREATE TABLE WORK.QUERY_FOR_PRDSALE AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT t1.COUNTRY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.PRODTYPE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.MONTH,&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; (SUM(t1.ACTUAL)) FORMAT=DOLLAR12.2 AS ACTUAL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM SASHELP.PRDSALE t1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE t1.YEAR = 1994&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY t1.COUNTRY, t1.PRODTYPE, t1.MONTH ;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=WORK.QUERY_FOR_PRDSALE nowd&lt;/P&gt;&lt;P&gt;style(summary)=Header&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;title '3c) PROC REPORT';&lt;/P&gt;&lt;P&gt;*column ('Study' study) ('Category' category) datetime,value ('Total' value=tot);&lt;/P&gt;&lt;P&gt;column ('PRODTYPE' PRODTYPE)&amp;nbsp; ('COUNTRY' COUNTRY)&amp;nbsp; MONTH, ACTUAL&amp;nbsp; ('ACTUAL' ACTUAL=tot);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define PRODTYPE / group style(column)=Header ' '&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;define COUNTRy / group /*style(column)=Header */' ';&lt;/P&gt;&lt;P&gt;define MONTH /across order=internal f=date7. 'Date';&lt;/P&gt;&lt;P&gt;define ACTUAL / analysis sum f=comma6. ' ';&lt;/P&gt;&lt;P&gt;define tot / analysis sum ' ' f=comma6. ;&lt;/P&gt;&lt;P&gt;rbreak before/ summarize;&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute before ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PRODTYPE = 'TOTAL' /&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 18:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165766#M12159</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-08-18T18:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report merge cells of summary line.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165767#M12160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merge cells or just remove the column border?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 20:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165767#M12160</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-18T20:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report merge cells of summary line.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165768#M12161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Ballardw,&lt;SPAN style="line-height: 18px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I was trying to merge cells here. I guess the border can be removed using htmlstyle=&amp;nbsp; option within the style.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 21:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165768#M12161</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-08-18T21:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report merge cells of summary line.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165769#M12162</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; You cannot "merge" the cells. Whether HTMLSTYLE will work depends on the destination. You may or may not be able to change the style of just those lines, but again, depends on the version of SAS you're using and on your destination of choice.&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 Aug 2014 21:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165769#M12162</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-08-18T21:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report merge cells of summary line.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165770#M12163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia, &lt;/P&gt;&lt;P&gt;I mostly work on SAS addin SP reports using HTML..&amp;nbsp; &lt;/P&gt;&lt;P&gt;I saw the merge happen in one report. But that was using PROC TABULATE.&amp;nbsp; I hate to use PROC Tabulate so was wondering if&amp;nbsp; that could be done in proc report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was under the impression that since an HTML file is created and then read into excel we could do something. &lt;/P&gt;&lt;P&gt;Never mind. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Cynthia and &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Ballardw.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 18:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-merge-cells-of-summary-line/m-p/165770#M12163</guid>
      <dc:creator>Smijoss</dc:creator>
      <dc:date>2014-08-29T18:45:23Z</dc:date>
    </item>
  </channel>
</rss>

