<?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: Create multiple tabs in one workbook in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195605#M14869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried explicitly writing your file name in the outfile? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG 4.3 probably cant create XLSX file as it was too old at the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\temp\test.xls &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 03:23:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-03-06T03:23:19Z</dc:date>
    <item>
      <title>Create multiple tabs in one workbook</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195604#M14868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi members,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running SAS EG4.3 on the server, and trying to create an excel file with multiple tab in it, and then send this file to myself; however, I keep getting an error saying "ERROR: DBMS type XLSX not valid for export.", I did some research, but tried several suggestions online, but it still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to create an Excel file before I attach in the mail? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*** output an Excel with multiple tab ***/&lt;/P&gt;&lt;P&gt;data &amp;amp;server..test2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set &amp;amp;server..test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data = &amp;amp;server..test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; outfile = "c:/sas/test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dbms = excel replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sheet = check1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data = &amp;amp;server..test2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; outfile = "c:/sas/test"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dbms = excel replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; sheet = check2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ERROR: DBMS type EXCEL not valid for export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*** sent an email ***/&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;file sendit email&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;to='email.com'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;subject='Demo Results'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;attach=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;'&amp;amp;server..test2.xls' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;&amp;nbsp; content_type="application/excel"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New';"&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Error opening attachment file test2.xls.&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, server..test2.xls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need more information. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 00:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195604#M14868</guid>
      <dc:creator>Belle</dc:creator>
      <dc:date>2015-03-06T00:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple tabs in one workbook</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195605#M14869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried explicitly writing your file name in the outfile? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EG 4.3 probably cant create XLSX file as it was too old at the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c:\temp\test.xls &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 03:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195605#M14869</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-06T03:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple tabs in one workbook</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195606#M14870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For DBMS=EXCEL to work, you need to have SAS/ACCESS to PC Files licensed and installed in your SAS environment.&amp;nbsp; It appears that you don't have that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The alternative for SAS 9.2 is to &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html"&gt;use ODS tagsets.ExcelXP&lt;/A&gt;,&amp;nbsp; which creates an Excel-compatible XML file.&amp;nbsp; For SAS 9.4 users, you can use &lt;A href="http://blogs.sas.com/content/sasdummy/2014/08/29/experimenting-with-ods-excel-to-create-spreadsheets-from-sas/"&gt;ODS EXCEL to create an XLSX file&lt;/A&gt; directly.&amp;nbsp; Both of these methods work in Base SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also export to CSV and attach that in your e-mail.&amp;nbsp; It's a simple file format that opens in Excel, but you won't have the control over multiple sheets that you're looking for.&amp;nbsp; You would have to export multiple CSV files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 13:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195606#M14870</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-03-06T13:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple tabs in one workbook</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195607#M14871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza and Chris. It seems like this is very complicated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm going to find a workaround and export as csv / xslx files as part of the process flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw...my final goal is to fit the final report template, I can use EED to read in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 06:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195607#M14871</guid>
      <dc:creator>Belle</dc:creator>
      <dc:date>2015-03-07T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple tabs in one workbook</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195608#M14872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Libname statement is a good choice .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;

libname x excel 'c:\temp\multi.xls';

data a_20150101 a_20150204 a_20150903;
&amp;nbsp;&amp;nbsp; set sashelp.class;
&amp;nbsp;&amp;nbsp; run;

proc copy in=work out=x memtype=data ;run;

libname x clear; 

&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;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 06:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-multiple-tabs-in-one-workbook/m-p/195608#M14872</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-09T06:59:36Z</dc:date>
    </item>
  </channel>
</rss>

