<?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 TABULATE with ODS TAGSET in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77434#M8792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, this is my style proc template :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define style styles.test2;&lt;/P&gt;&lt;P&gt;parent=styles.journal;&lt;/P&gt;&lt;P&gt;style body from body / background=transparent;&lt;/P&gt;&lt;P&gt;style header from header / font_weight=bold font_size=10pt&lt;/P&gt;&lt;P&gt;font_style=italic borderrightwidth=1&lt;/P&gt;&lt;P&gt;bordertopwidth=1 borderbottomwidth=2;&lt;/P&gt;&lt;P&gt;style data from data / bordertopwidth=0 borderbottomwidth=0&lt;/P&gt;&lt;P&gt;borderleftwidth=1 borderrightwidth=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace Table from Output /&lt;/P&gt;&lt;P&gt;frame = hsides;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i run on SAS 9.1.3. I tried this example on &lt;A href="http://support.sas.com/kb/45/306.html" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;" title="http://support.sas.com/kb/45/306.html"&gt;http://support.sas.com/kb/45/306.html&lt;/A&gt; and its doesn't work. Is there any problem if i use different version of SAS?. The point is i want to build excel report based on PROC TABULATE output which it creating multiple spreadsheet. Is there possible for SAS 9.1.3?. Need advice again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 08:46:07 GMT</pubDate>
    <dc:creator>KRUDEL</dc:creator>
    <dc:date>2012-07-31T08:46:07Z</dc:date>
    <item>
      <title>PROC TABULATE with ODS TAGSET</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77431#M8789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any syntax to export with PROC TABULATE for multiple spreedsheet for excel output? because i tried with this script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods Tagsets.ExcelXP file='C:\Training\'&lt;/P&gt;&lt;P&gt;file= 'test.xml' &lt;/P&gt;&lt;P&gt;style = Styles.test2;&lt;/P&gt;&lt;P&gt;proc tabulate missing data=sashelp.class;&lt;/P&gt;&lt;P&gt;class sex age;&lt;/P&gt;&lt;P&gt;table sex=''*(age='' all),n;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods Tagsets.ExcelXP close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is an error when opening the file. Need advice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 08:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77431#M8789</guid>
      <dc:creator>KRUDEL</dc:creator>
      <dc:date>2012-07-30T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE with ODS TAGSET</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77432#M8790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Krudel&lt;/P&gt;&lt;P&gt;Your code (without style as this could be another problem)&amp;nbsp; is working well under sas 9.3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it is true that the opening of the xml file in the resultsviewer encounter an advertisement&lt;/P&gt;&lt;P&gt;that ask you to allow this opening.&lt;/P&gt;&lt;P&gt;but if you go in the results windows and you double click&amp;nbsp; after on the table1 excel icon&lt;/P&gt;&lt;P&gt;you can see that the xml file is correct and well readed by excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to save this file in a real .xls file or .xlsx/xlsb file&lt;/P&gt;&lt;P&gt;depending of your version of Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see perhaps too&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Tips:Automatically_opening_Excel_workbooks_created_by_the_ExcelXP_tagset" title="http://www.sascommunity.org/wiki/Tips:Automatically_opening_Excel_workbooks_created_by_the_ExcelXP_tagset"&gt;http://www.sascommunity.org/wiki/Tips:Automatically_opening_Excel_workbooks_created_by_the_ExcelXP_tags&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/38/266.html" title="http://support.sas.com/kb/38/266.html"&gt;http://support.sas.com/kb/38/266.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 11:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77432#M8790</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2012-07-30T11:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE with ODS TAGSET</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77433#M8791</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; Just to point out that your PROC TABULATE has to create more than 1 table in order to seemultiple sheets in the XML file.&amp;nbsp; But, with an * between SEX and AGE, you are asking for the values of AGE to&amp;nbsp; be shown within values of SEX in the ROW dimension, so, you are only creating 1 table which will appear on 1 sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In addition to Andre's suggestions, I wanted to make sure that you didn't actually have 2 &lt;STRONG style="color: #ff00ff;"&gt;FILE&lt;/STRONG&gt;= options:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods Tagsets.ExcelXP &lt;SPAN style="color: #ff00ff;"&gt;file&lt;/SPAN&gt;='C:\Training\'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;file&lt;/SPAN&gt;= 'test.xml'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;style = Styles.test2&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured that the first FILE= was probably a typo and you really have PATH=:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods Tagsets.ExcelXP &lt;SPAN style="color: #ff00ff;"&gt;path&lt;/SPAN&gt;='C:\Training\'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;file&lt;/SPAN&gt;= 'test.xml'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;style = sasweb&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;OR&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 Tagsets.ExcelXP &lt;SPAN style="color: #ff00ff;"&gt;FILE&lt;/SPAN&gt;='C:\Training\test.xml'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;style = sasweb&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another debugging technique would be to use one of the standard styles -- looks like &lt;STRONG style="color: #3366ff;"&gt;STYLE&lt;/STRONG&gt;=styles.test2 is a custom style -- if the file opens when you use SASWEB or HTMLBLUE style, but doesn't open when you use your custom style, that means there could be something wrong with your style specification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a note about how using TABULATE with a PAGE dimension causes issues, but I don't see that you are using a PAGE dimension in your code.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/45/306.html"&gt;http://support.sas.com/kb/45/306.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last, might be to check your version of TAGSETS.EXCELXP and possibly update it, per these instructions:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/kb/32/394.html"&gt;http://support.sas.com/kb/32/394.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If none of that works, then I'd recommend opening a track with Tech Support.&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, 30 Jul 2012 14:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77433#M8791</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-30T14:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE with ODS TAGSET</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77434#M8792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, this is my style proc template :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc template;&lt;/P&gt;&lt;P&gt;define style styles.test2;&lt;/P&gt;&lt;P&gt;parent=styles.journal;&lt;/P&gt;&lt;P&gt;style body from body / background=transparent;&lt;/P&gt;&lt;P&gt;style header from header / font_weight=bold font_size=10pt&lt;/P&gt;&lt;P&gt;font_style=italic borderrightwidth=1&lt;/P&gt;&lt;P&gt;bordertopwidth=1 borderbottomwidth=2;&lt;/P&gt;&lt;P&gt;style data from data / bordertopwidth=0 borderbottomwidth=0&lt;/P&gt;&lt;P&gt;borderleftwidth=1 borderrightwidth=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace Table from Output /&lt;/P&gt;&lt;P&gt;frame = hsides;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i run on SAS 9.1.3. I tried this example on &lt;A href="http://support.sas.com/kb/45/306.html" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0e66ba; background-color: #ffffff;" title="http://support.sas.com/kb/45/306.html"&gt;http://support.sas.com/kb/45/306.html&lt;/A&gt; and its doesn't work. Is there any problem if i use different version of SAS?. The point is i want to build excel report based on PROC TABULATE output which it creating multiple spreadsheet. Is there possible for SAS 9.1.3?. Need advice again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 08:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77434#M8792</guid>
      <dc:creator>KRUDEL</dc:creator>
      <dc:date>2012-07-31T08:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE with ODS TAGSET</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77435#M8793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I no longer have SAS 9.1.3 to test with. Tech Support could test your style template in 9.1.3 with TAGSETS.EXCELXP. One note, if you use the REPLACE statement in a style template, you have to respecify all the style attributes you want to keep:&lt;/P&gt;&lt;P&gt;From the 9.1.3 doc:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"If you use the REPLACE statement to create a style element in the new style &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;definition, all style elements that inherit from that element inherit the &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;definition that is in the new style definition.&lt;SPAN style="text-decoration: underline;"&gt; If you want to keep any &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;attributes that are specified in the definition that is in the parent, you must &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;respecify them in the definition that you create in the child style definition&lt;/SPAN&gt;."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, the way you have created the template, your style element for TABLE ony has 1 attribute and the other needed attributes are going to be undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I'm not sure that BACKGROUND=TRANSPARENT was possible in SAS 9.1.3. In addition the BORDERRIGHTWIDTH, BORDERLEFTWIDTH (etc) style attributes first were production in SAS 9.2 -- but again, Tech Support would know for sure and could help you come up with a working style template.&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;BTW, in SAS 9.3, the code and example in the Tech Support note 45306 worked (without any changes) to create a new sheet for every unique value of AGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS 9.2, this code worked (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;without a custom style template&lt;/STRONG&gt;&lt;/SPAN&gt;) to create multisheet output:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="c:\temp\multsheet.xml" style=styles.sasweb;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;proc tabulate data=sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; class age sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var height;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; table age, sex, height;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 15:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-with-ODS-TAGSET/m-p/77435#M8793</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-31T15:03:34Z</dc:date>
    </item>
  </channel>
</rss>

