<?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 to export Tables in different excel sheets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110488#M30668</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 have never seen that error when using TAGSETS.EXCELXP. If you used the MINIMAL style, as recommended, that style has no font definition. When I use the MINIMAL style with TAGSETS.EXCELXP and look down in the XML file (with Notepad), I do NOT see any hard-coded font references at all. What version of SAS do you have and if you look in the log, what version of TAGSETS.EXCELXP did SAS use? What version of Office did you use to open the file (you need Excel 2002/2003 to open the file -- Excel 97 won't work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would recommend that you open a track with Tech Support.&amp;nbsp;&amp;nbsp; To open a track with Tech Support, fill out the form at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; They can look at ALL of your code and the style that you used and the version of SAS that you have and the version of TAGSETS.EXCELXP that you use and help you come to a resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Apr 2013 12:28:04 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-04-19T12:28:04Z</dc:date>
    <item>
      <title>How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110485#M30665</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;I am trying to export some tables into Excel 2003 or 2007. The ideal pattern for me is to export each table in a new sheet in a unit file.&lt;/P&gt;&lt;P&gt;I mean, table 1 --&amp;gt; sheet 1, table 2--&amp;gt; sheet 2,&amp;nbsp; ... when all sheet 1,2, ... are in the same file. I searched in the internet but did not find anything related. &lt;/P&gt;&lt;P&gt;Do you think it is possible? if yes, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 02:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110485#M30665</guid>
      <dc:creator>Shayan2012</dc:creator>
      <dc:date>2013-04-17T02:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110486#M30666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very much possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP &lt;/P&gt;&lt;P&gt;FILE='C:\temp\test_xp.xls'&lt;/P&gt;&lt;P&gt;STYLE=minimal &lt;/P&gt;&lt;P&gt; OPTIONS ( Sheet_Name = 'Shoes' );&lt;/P&gt;&lt;P&gt; PROC PRINT DATA=sashelp.shoes; RUN; &lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP &lt;/P&gt;&lt;P&gt; OPTIONS ( Sheet_Name = 'Class' );&lt;/P&gt;&lt;P&gt; PROC PRINT DATA=sashelp.class; RUN; &lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When having the prompt, click 'yes'. Or you don't like the prompt, then change test_xp.xls to test_xp.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are ways to do multisheet using Proc Report as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 02:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110486#M30666</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-04-17T02:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110487#M30667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much,Haikuo. Thats awesome and t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;he code&amp;nbsp; works well. However, when I try to open excel file, I got an error with this log file for the error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XML ERROR in Style&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REASON: Bad Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE: D:\test4.xls&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP: Style&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TAG: Font&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ATTRIB: FontName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE: MS PGothic, MS PGothic, Helvetica&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(This is repated multiple times, apparently for each observation)&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing that excel can not recognize the sas font, and I am not sure how can I change it in the procedure. should I use proc template? or it is possible through the above code?&lt;/P&gt;&lt;P&gt;Could you please help me on that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 05:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110487#M30667</guid>
      <dc:creator>Shayan2012</dc:creator>
      <dc:date>2013-04-19T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110488#M30668</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 have never seen that error when using TAGSETS.EXCELXP. If you used the MINIMAL style, as recommended, that style has no font definition. When I use the MINIMAL style with TAGSETS.EXCELXP and look down in the XML file (with Notepad), I do NOT see any hard-coded font references at all. What version of SAS do you have and if you look in the log, what version of TAGSETS.EXCELXP did SAS use? What version of Office did you use to open the file (you need Excel 2002/2003 to open the file -- Excel 97 won't work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I would recommend that you open a track with Tech Support.&amp;nbsp;&amp;nbsp; To open a track with Tech Support, fill out the form at this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/ctx/supportform/createForm"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; They can look at ALL of your code and the style that you used and the version of SAS that you have and the version of TAGSETS.EXCELXP that you use and help you come to a resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 12:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110488#M30668</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-19T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110489#M30669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use a simple Macro to make a real excel file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
 input dataset_name : $20.;
cards;
sashelp.class
sashelp.air
;
run;
data _null_;
 set have;
 call execute('proc export data='||dataset_name||' outfile="c:\temp\want.xls"&amp;nbsp; dbms=excel;sheet="'||strip(scan(dataset_name,-1,'.'))||'";run;');
run;

&lt;/PRE&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;&lt;P&gt;KSharp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 07:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110489#M30669</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-20T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110490#M30670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&amp;nbsp; Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I chekced again with minimal style and with xml. filetype and it worked this time. I must have done something wrong. But, If I want to use format xls the problem remains, and I am not sure why. I will try to find the problem anyway through the support. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 17:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110490#M30670</guid>
      <dc:creator>Shayan2012</dc:creator>
      <dc:date>2013-04-20T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110491#M30671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for future reference, I add that it seems the problem I was talking about above was resulting from&amp;nbsp; the names that I was trying to attribute to excel sheets. My names contained underscores, and apparently faced problems in exporting. After removing the _, the code worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110491#M30671</guid>
      <dc:creator>Shayan2012</dc:creator>
      <dc:date>2013-04-25T13:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110492#M30672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KSharp, is there a way to update the data to excel?&amp;nbsp; If I create a table in Excel, I want it to remain, and just update the SAS data.Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 20:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110492#M30672</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2013-12-19T20:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to export Tables in different excel sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110493#M30673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post as your own question, and link/reference this if required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 20:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-Tables-in-different-excel-sheets/m-p/110493#M30673</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-19T20:55:08Z</dc:date>
    </item>
  </channel>
</rss>

