<?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: ExcelXP tagset and proc means/freq output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82116#M8988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; That worked well for proc freq.&amp;nbsp; It did not work for proc means. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For proc means, I'd like to capture the default table that is printed in HTML.&amp;nbsp; If I could get that table as an output dataset I could use proc print.&amp;nbsp; But I can't seem to find the right options for the output statement to create a dataset that looks like the HTML table.&amp;nbsp; Any suggestions on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 14:52:55 GMT</pubDate>
    <dc:creator>TedShelly</dc:creator>
    <dc:date>2012-06-14T14:52:55Z</dc:date>
    <item>
      <title>ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82114#M8986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often use the ExcelXP tagset to create spreadsheets from proc print.&amp;nbsp; I’d like to do the same for the output from proc means and proc freq.&amp;nbsp; I tried doing this in the usual way but did not get the results I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For proc means, all results were on one row of the spreadsheet.&amp;nbsp; I would have thought it would look much like the table created in HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For proc freq, I got only the first table request of six tables specified in the tables statement.&amp;nbsp; Is there any way to get them all on one sheet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any hints on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82114#M8986</guid>
      <dc:creator>TedShelly</dc:creator>
      <dc:date>2012-06-13T14:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82115#M8987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In response to the second part of your question, the TAGSETS.ExcelXP option you are likely looking for is SHEET_INTERVAL.&lt;/P&gt;&lt;P&gt;This option has five possible values: Table, Page, Bygroup, Proc and None. Try ODS Tabsets.ExcelXP (options (Sheet_interval='None') or (Sheet_interval='Proc') before the call to proc freq.&lt;/P&gt;&lt;P&gt;However I've run into cases where you may still get one table per sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would send the output from proc means/summary to an output dataset and use proc print to display to get around the behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82115#M8987</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-06-13T14:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82116#M8988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; That worked well for proc freq.&amp;nbsp; It did not work for proc means. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For proc means, I'd like to capture the default table that is printed in HTML.&amp;nbsp; If I could get that table as an output dataset I could use proc print.&amp;nbsp; But I can't seem to find the right options for the output statement to create a dataset that looks like the HTML table.&amp;nbsp; Any suggestions on that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 14:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82116#M8988</guid>
      <dc:creator>TedShelly</dc:creator>
      <dc:date>2012-06-14T14:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82117#M8989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post the code you're using and/or what the excel output you'd like to get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the following code the results I get are almost identical to what I'd get if I ran the code using HTML as the destination, so I wonder if any of the options you're selecting are messing up the output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file='C:\test.xls' style=journal;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; class sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var weight height;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table age sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82117#M8989</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-06-14T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82118#M8990</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; I'm not sure what you mean by the "default" table that is printed in HTML (see screenshot pix_means_html.png). For example, in the code below, I use SALES, INVENTORY and RETURNS with PROC MEANS and a CLASS statement by REGION. I get all of that output in one sheet using TAGSETS.EXCELXP (see screen shot pix_means_xp.png).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; To me, the output in Excel (when the file is opened) looks very like the file that is created for ODS HTML.&lt;/P&gt;&lt;P&gt;Since you did not post any code, I made up some code using SASHELP.SHOES, using PROC FREQ (my program gets both FREQ tables into 1 sheet), PROC MEANS (all my MEANS output is in one sheet) and PROC PRINT. If you create an output dataset (using OUT= or OUTPUT statement) from MEANS (and FREQ) and then send that output dataset to ODS, then you will most likely get a different structure to the look -- because dataset structure from MEANS (and FREQ) are different than report structure. Note that in my code below I do NOT create output datasets with MEANS or FREQ. I just route the REPORT results to ODS TAGSETS.EXCELXP.&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;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\freq_means.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\freq_means.xml' style=sasweb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_interval='none' sheet_name='Freq');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc freq data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;tables region product ;&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; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp options(sheet_interval='table' sheet_name='Means');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc means data=sashelp.shoes n min mean max sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;class region;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var sales inventory returns;&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; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp options(sheet_name='Print');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where region = 'Western Europe';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; var region product sales inventory returns;&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; &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;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11927i481690891BB92D39/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="pix_means_xp.png" title="pix_means_xp.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11928i5722FA71CE806A08/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="pix_means_html.png" title="pix_means_html.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82118#M8990</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-06-14T16:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82119#M8991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had forgotten about the appearance of means output. I generally use PROC TABULATE to create table output instead because of control and appearance issues. The following example should give you an idea how to generate something similar to base MEANS output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=yourdataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var var1 var 2 var3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table var1 var2 var3, n mean std min max;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 16:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82119#M8991</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-06-14T16:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP tagset and proc means/freq output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82120#M8992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; Proc Tabulate does the job as expected.&amp;nbsp; I'm now a convert to using Tabulate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 18:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-tagset-and-proc-means-freq-output/m-p/82120#M8992</guid>
      <dc:creator>TedShelly</dc:creator>
      <dc:date>2012-06-14T18:22:11Z</dc:date>
    </item>
  </channel>
</rss>

