<?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: Exporting SAS dataset to Excel file that doesn't already exist in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-Excel-file-that-doesn-t-already-exist/m-p/421734#M67983</link>
    <description>&lt;P&gt;Try DBMS=EXCEL or DBMX=XLSX&amp;nbsp;instead of DBMS=EXCELCS. EXCELCS expects to write to XLS not XLSX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your EG is a couple of versions behind your server may be as well. I don't remember exactly when XLSX became available so not sure which should work.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Dec 2017 00:11:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-12-16T00:11:32Z</dc:date>
    <item>
      <title>Exporting SAS dataset to Excel file that doesn't already exist</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-Excel-file-that-doesn-t-already-exist/m-p/421733#M67982</link>
      <description>&lt;P&gt;I want to export a SAS dataset from UNIX server to LAN as an Excel file but I want the Excel workbook to be created if it doesn't already exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first export works and the ".xls" file is created when it doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am concerned that the dataset might exceed the ~ 65000 rows in a ".xls" file so I would prefer to be able to export the data as ".xlsx".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second export does not work when I try to export as ".xlsx" file unless I&amp;nbsp;manually create a blank workbook called "Want.xlsx" before running the export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working in SAS Enterprise Guide 6.1. &amp;nbsp;Any&amp;nbsp;help would be greatly appreciated.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= work.HAVE
	OUTFILE= "\\LAN\WANT.xls"
	DBMS= EXCELCS REPLACE;
	SERVER=SERVERNAME; PORT=0001;
	SERVERUSER="USRDOM\&amp;amp;USER"; SERVERPASS="&amp;amp;PW";
	SHEET= "OUTPUT";
RUN;

PROC EXPORT DATA= work.HAVE
	OUTFILE= "\\LAN\WANT.xlsx"
	DBMS= EXCELCS REPLACE;
	SERVER=SERVERNAME; PORT=0001;
	SERVERUSER="USRDOM\&amp;amp;USER"; SERVERPASS="&amp;amp;PW";
	SHEET= "OUTPUT";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 23:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-Excel-file-that-doesn-t-already-exist/m-p/421733#M67982</guid>
      <dc:creator>GeorgeBonanza</dc:creator>
      <dc:date>2017-12-15T23:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to Excel file that doesn't already exist</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-Excel-file-that-doesn-t-already-exist/m-p/421734#M67983</link>
      <description>&lt;P&gt;Try DBMS=EXCEL or DBMX=XLSX&amp;nbsp;instead of DBMS=EXCELCS. EXCELCS expects to write to XLS not XLSX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your EG is a couple of versions behind your server may be as well. I don't remember exactly when XLSX became available so not sure which should work.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 00:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-Excel-file-that-doesn-t-already-exist/m-p/421734#M67983</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-16T00:11:32Z</dc:date>
    </item>
  </channel>
</rss>

