<?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 Export multiple datasets into excel with different sheets in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388704#M25063</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am using sas enterprise guide 5.1 version with MS Office-2010.&lt;/P&gt;
&lt;P&gt;I want to export two datasets into excel with 2 different sheets, I tried proc export&lt;/P&gt;
&lt;P&gt;proc export data=dataset1 outfile="filename.&lt;SPAN&gt;xlsx&lt;/SPAN&gt;"&lt;BR /&gt;dbms=xlsx&lt;/P&gt;
&lt;P&gt;replace;&lt;BR /&gt; sheet="salaries";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc export data=dataset2 outfile="filename.&lt;SPAN&gt;xlsx&lt;/SPAN&gt;"&lt;BR /&gt;dbms=&lt;SPAN&gt;xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;replace;&lt;BR /&gt; sheet="department";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After this i am keeping this file in zip file and sending automailer.&lt;/P&gt;
&lt;P&gt;ods package(Accounts) open nopf;&lt;BR /&gt;ods package(Accounts) add file="filaname.xls";&lt;BR /&gt;ods package(Accounts) publish archive&lt;BR /&gt;properties(archive_name="Accounts.zip"&lt;BR /&gt;archive_path="/SAS/BIU/INPUT");&lt;BR /&gt;ods package(Accounts)&amp;nbsp;&lt;BR /&gt;close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in mail only the second sheets appears, is there any solution of exporting two sheets in excel.&lt;/P&gt;
&lt;P&gt;In this dbms=excel and excelcs are not working.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2017 06:34:53 GMT</pubDate>
    <dc:creator>Ravikumarkummari</dc:creator>
    <dc:date>2017-08-17T06:34:53Z</dc:date>
    <item>
      <title>Export multiple datasets into excel with different sheets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388704#M25063</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am using sas enterprise guide 5.1 version with MS Office-2010.&lt;/P&gt;
&lt;P&gt;I want to export two datasets into excel with 2 different sheets, I tried proc export&lt;/P&gt;
&lt;P&gt;proc export data=dataset1 outfile="filename.&lt;SPAN&gt;xlsx&lt;/SPAN&gt;"&lt;BR /&gt;dbms=xlsx&lt;/P&gt;
&lt;P&gt;replace;&lt;BR /&gt; sheet="salaries";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc export data=dataset2 outfile="filename.&lt;SPAN&gt;xlsx&lt;/SPAN&gt;"&lt;BR /&gt;dbms=&lt;SPAN&gt;xlsx&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;replace;&lt;BR /&gt; sheet="department";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After this i am keeping this file in zip file and sending automailer.&lt;/P&gt;
&lt;P&gt;ods package(Accounts) open nopf;&lt;BR /&gt;ods package(Accounts) add file="filaname.xls";&lt;BR /&gt;ods package(Accounts) publish archive&lt;BR /&gt;properties(archive_name="Accounts.zip"&lt;BR /&gt;archive_path="/SAS/BIU/INPUT");&lt;BR /&gt;ods package(Accounts)&amp;nbsp;&lt;BR /&gt;close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in mail only the second sheets appears, is there any solution of exporting two sheets in excel.&lt;/P&gt;
&lt;P&gt;In this dbms=excel and excelcs are not working.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 06:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388704#M25063</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2017-08-17T06:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple datasets into excel with different sheets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388757#M25069</link>
      <description>&lt;P&gt;Get rid of '&lt;SPAN&gt;replace' &amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388757#M25069</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-17T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple datasets into excel with different sheets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388844#M25079</link>
      <description>&lt;P&gt;I don't believe DBMS=XLSX supported multisheet excel workbooks until the latter versions. You need to include your SAS version, not EG.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:12:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/388844#M25079</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-17T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export multiple datasets into excel with different sheets</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/389097#M25089</link>
      <description>&lt;PRE&gt;
As @Rezza pointed out, try other engine.
DBMS=excel 
DBMS=xls


&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 12:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-multiple-datasets-into-excel-with-different-sheets/m-p/389097#M25089</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-18T12:52:58Z</dc:date>
    </item>
  </channel>
</rss>

