<?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: Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78149#M8821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am teaching today on a computer without access to Internet and typing code on my phone is possible, but I don't like to post untested cod-- and my phone doesn't have SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There have been many previous forum postings and user group papers about using the destination: ODS TAGSETS.EXCELXP to create multi-sheet workbooks. You will have to search Google or the forum for information about how to use ODS and this particular destination to create an XML file that conforms to the Microsoft specification for multi-sheet workbook description.&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, 11 Jun 2012 13:29:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-06-11T13:29:48Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78142#M8814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one tell me how to merge cell in headers as below&lt;/P&gt;&lt;P&gt;AND TO APPLY COLORS LIKE FOLLOW ONLY&lt;/P&gt;&lt;P&gt;BUT MY EG 4.3 NOT ALLOW TO USE TAGSET OR TEMPLETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANY ONE HELP ME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/2135_pastedImage_0.png" style="width: 352px; height: 119px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 15:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78142#M8814</guid>
      <dc:creator>sravanpathu</dc:creator>
      <dc:date>2012-06-07T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78143#M8815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC TABULATE will do part of what you want. PROC REPORT will do part of what you want. Either way, you will need to either "start" your code with EG and then modify it or just write the code directly. For example, the code below using PROC TABULATE created the screenshot. My program used SASHELP.CLASS, so I had to fake some labels to be the same as the labels you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your procedure of choice, you may or may not be able to produce these kinds of spanning headers. SAS is not Excel or Word - -so the methods by which you create "merged cells" in Excel or Word do not necessarily apply in a SAS table.&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;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html file='c:\temp\hilite_eg.html'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=egdefault;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; where age in (12, 13, 14);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; class sex ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; classlev sex / style={background=red};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; class age /style={background=yellow};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; classlev age / style={background=yellow};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var height / style={background=yellow vjust=m};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; table sex=' ',&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age*n=' ' height*mean=' ' /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; box={label='One' s={background=red}};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; label age='Following'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height='Three';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods html close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10709iA45149EC6A4234AE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="tab_hilite.jpg" title="tab_hilite.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 18:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78143#M8815</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-07T18:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78144#M8816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ma'am,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we do completely in Report only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 16:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78144#M8816</guid>
      <dc:creator>sravanpathu</dc:creator>
      <dc:date>2012-06-08T16:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78145#M8817</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; REPORT and TABULATE will not look exactly alike, see the attached screenshot. PROC REPORT code is below, since the TABULATE code was already posted.&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;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&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;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\hilite_eg.html'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=egdefault;&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;&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; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(header)={background=red};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title 'PROC REPORT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where age in (12, 13, 14);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column ('One' sex) age,n ('Three' height);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / group ' '&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)=Header{background=red};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / across 'Following'&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)={background=yellow}&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)={background=white};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define n / ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / mean ' ' f=9.2&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)={background=white};&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;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11941iCA34F62B78C5797A/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="compare_tab_report.jpg" title="compare_tab_report.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 17:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78145#M8817</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-08T17:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78146#M8818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ma'am,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when am using the code Cells are not merging i want in merged format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 04:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78146#M8818</guid>
      <dc:creator>sravanpathu</dc:creator>
      <dc:date>2012-06-09T04:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78147#M8819</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; That is why I posted the TABULATE example first. The look of the table that you showed CAN be produced with PROC TABULATE, because TABULATE builds headers differently than almost any other SAS procedure. What you call a merged cell is generally a spanning header in SAS and TABULATE most often can give you a spanning header that spans multiple column headers, or gives the appearance of "merging" cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC REPORT is not Word or Excel. PROC REPORT is not PROC TABULATE. PROC&amp;nbsp; REPORT writes one report row to contain the text string 'Following', then it writes another report row for the other strings. Although the "line" between cells can be colored differently,&amp;nbsp; the division is still there. Even if you made the divider lines red, however, you could &lt;STRONG style="text-decoration: underline;"&gt;not&lt;/STRONG&gt; move the text into the middle of the two cells, because that area is occupied by the interior table lines dividing the two cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If the cosmetic look of merged cells is crucial to your report, then consider using PROC TABULATE. If you need PROC REPORT for other purposes, such as computing variables or summarizing or writing custom break lines, then using PROC REPORT, there are no instructions to "merge" the cells above the columns for 'One' and 'Three'.&amp;nbsp; Also, note that, techniques for coloring the division lines or interior table lines (using bordertopcolor, borderbottomcolor, etc) might work differently in RTF or PDF than in HTML, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jun 2012 13:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78147#M8819</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-09T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78148#M8820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Ma'am,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we create multiple work sheets in excel using ODS.&lt;/P&gt;&lt;P&gt;Please share me the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Sravan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 03:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78148#M8820</guid>
      <dc:creator>sravanpathu</dc:creator>
      <dc:date>2012-06-11T03:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78149#M8821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am teaching today on a computer without access to Internet and typing code on my phone is possible, but I don't like to post untested cod-- and my phone doesn't have SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There have been many previous forum postings and user group papers about using the destination: ODS TAGSETS.EXCELXP to create multi-sheet workbooks. You will have to search Google or the forum for information about how to use ODS and this particular destination to create an XML file that conforms to the Microsoft specification for multi-sheet workbook description.&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, 11 Jun 2012 13:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Report/m-p/78149#M8821</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-11T13:29:48Z</dc:date>
    </item>
  </channel>
</rss>

