<?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 Export - To specific Sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292380#M60682</link>
    <description>&lt;P&gt;Whilst this isn't particularly helpful, the problem lies not in the process but the tool used. &amp;nbsp;Excel is not a reporting suite (as it is not a tool for anything else either). &amp;nbsp;That is where you problem lies. &amp;nbsp;There are three&amp;nbsp;possiblities:&lt;/P&gt;
&lt;P&gt;1) This being the optimal solution, use a set of tools designed to do reporting on data, for instance Spotfire, you update the data and the online reports get refreshed.&lt;/P&gt;
&lt;P&gt;2) You simulate the above but generating your reports and publishing new files (which can look similar) to a shared area.&lt;/P&gt;
&lt;P&gt;3) You can export your data from SAS to CSV, then in Excel using VBA you can import that data and manipulate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 08:19:08 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-08-18T08:19:08Z</dc:date>
    <item>
      <title>Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292279#M60631</link>
      <description>&lt;P&gt;I'm trying to export some summary data onto a specific sheet in an excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news is that the export runs successfully, bad news is that it overwrites the entire workbook!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the information on the remainder of the workbook (some formatting, formulas, and other template stuff for powerpoint). Can anyone spot what's wrong with my query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The export data set has 215 observations and 25 variables.&lt;BR /&gt;NOTE: "\\server\Dashboard.xlsx" file was successfully created.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.12 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA= dash.sum_taxonomy 
			outfile= "\\server\summary\Dashboard.xlsx" 
			dbms=xlsx replace;
			sheet="RawData";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292279#M60631</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-17T21:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292282#M60632</link>
      <description>&lt;P&gt;What version of SAS are you using? Have you tried removing the REPLACE option?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292282#M60632</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T20:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292289#M60636</link>
      <description>&lt;P&gt;Hey Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using EG 5.1, but primarily leveraging the program function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal would be to overwrite an existing sheet with this newer data (I'm trying to update the dashboard).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed the "Replace" option, and received this error:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: Export cancelled. Output file \\Server\Dashboard.xlsx already exists. Specify REPLACE&lt;BR /&gt;option to overwrite it.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292289#M60636</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-17T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292291#M60637</link>
      <description>&lt;P&gt;You need your SAS version, this shows it in your log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysver;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you're using an older version though, so perhaps try EXCEL or EXCELCS or PCFILES as DBMS instead of XLSX. I think XLSX in those versions didn't support replacement and/or multiple sheets.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 20:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292291#M60637</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T20:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292297#M60639</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The put function doesn't seem to reveal the SAS Version number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to run using the DMBS = EXCEL, and I received a class not registered error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysver;
PROC EXPORT DATA= dash.sum_taxonomy 
			outfile= "\\server\Dashboard.xlsx" 
			dbms=EXCEL;
			sheet="RawData";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;13&lt;BR /&gt;14 GOPTIONS ACCESSIBLE;&lt;BR /&gt;15 %put &amp;amp;sysver;&lt;BR /&gt;9.3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;16 PROC EXPORT DATA= dash.sum_taxonomy&lt;BR /&gt;17 outfile= "\\server\Dashboard.xlsx"&lt;BR /&gt;18 dbms=EXCEL;&lt;BR /&gt;19 sheet="RawData";&lt;BR /&gt;20&lt;BR /&gt;21&lt;BR /&gt;22&lt;BR /&gt;23&lt;BR /&gt;24 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;25 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;26 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;27 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;28 %LET _SASPROGRAMFILE=;&lt;BR /&gt;29&lt;BR /&gt;30 ;*';*";*/;quit;&lt;/P&gt;&lt;P&gt;1 The SAS System 15:49 Wednesday, August 17, 2016&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;ERROR: Connect: Class not registered&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;Connection Failed. See log for details.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attempted to run on EXCELCS and received the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysver;
PROC EXPORT DATA= dash.sum_taxonomy 
			outfile= "\\server\Dashboard.xlsx" 
			dbms=EXCELCS;
			sheet="RawData";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;13&lt;BR /&gt;14 GOPTIONS ACCESSIBLE;&lt;BR /&gt;15 %put &amp;amp;sysver;&lt;BR /&gt;9.3&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;16 PROC EXPORT DATA= dash.sum_taxonomy&lt;BR /&gt;17 outfile= "\\Server\Dashboard.xlsx"&lt;BR /&gt;18 dbms=EXCELCS;&lt;BR /&gt;19 sheet="RawData";&lt;BR /&gt;20&lt;BR /&gt;21&lt;BR /&gt;22 GOPTIONS NOACCESSIBLE;&lt;BR /&gt;23 %LET _CLIENTTASKLABEL=;&lt;BR /&gt;24 %LET _CLIENTPROJECTPATH=;&lt;BR /&gt;25 %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;26 %LET _SASPROGRAMFILE=;&lt;BR /&gt;27&lt;BR /&gt;28 ;*';*";*/;quit;&lt;/P&gt;&lt;P&gt;1 The SAS System 15:51 Wednesday, August 17, 2016&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Excel Driver]General error Unable to open registry key Temporary &lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;(volatile) Ace DSN for process 0x6730 Thread 0x5914 DBC 0xcb89b4 &lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;Excel'.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;ERROR: Error in the LIBNAME statement.&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;BR /&gt;Connection Failed. See log for details.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.27 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;28 ! run;&lt;BR /&gt;29 ODS _ALL_ CLOSE;&lt;BR /&gt;30&lt;BR /&gt;31&lt;BR /&gt;32 QUIT; RUN;&lt;BR /&gt;33&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 21:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292297#M60639</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-17T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292321#M60653</link>
      <description>&lt;P&gt;Put writes to the the log. You can see under the line of code in your log, your version is SAS 9.3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only other option I can suggest is the following macro. Hopefully someone else has better answers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 23:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292321#M60653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T23:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292352#M60670</link>
      <description>&lt;PRE&gt;
Not sure if this could work.
1) Try Libname statement + xlsx/excel engine

2) Try define a range:

PROC EXPORT DATA=sashelp.class 
			outfile= "/folders/myfolders/have.xlsx" 
			dbms=xlsx replace;
			sheet="RawData$E100:P400"; 
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 04:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292352#M60670</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-18T04:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292380#M60682</link>
      <description>&lt;P&gt;Whilst this isn't particularly helpful, the problem lies not in the process but the tool used. &amp;nbsp;Excel is not a reporting suite (as it is not a tool for anything else either). &amp;nbsp;That is where you problem lies. &amp;nbsp;There are three&amp;nbsp;possiblities:&lt;/P&gt;
&lt;P&gt;1) This being the optimal solution, use a set of tools designed to do reporting on data, for instance Spotfire, you update the data and the online reports get refreshed.&lt;/P&gt;
&lt;P&gt;2) You simulate the above but generating your reports and publishing new files (which can look similar) to a shared area.&lt;/P&gt;
&lt;P&gt;3) You can export your data from SAS to CSV, then in Excel using VBA you can import that data and manipulate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 08:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292380#M60682</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-18T08:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292480#M60713</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%utlfkil(d:/xls/existing_sheet.xlsx); /* delete if exist */

libname xls "d:/xls/existing_sheet.xlsx";
data xls.'existing_sheet'n;
 set sashelp.class;
run;quit;
libname xls clear;

* add  worksheet without affecting other worksheets;

libname xls "d:/xls/existing_sheet.xlsx";
data xls.'added_sheet'n;
 set sashelp.cars;
run;quit;
libname xls clear;

or using R

%utl_submit_r64('
library(XLConnect);
writeWorksheetToFile(file = "d:/xls/existing_sheet.xlsx", data = c0, sheet = "CLASS");
');

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Aug 2016 15:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292480#M60713</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-08-18T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292504#M60727</link>
      <description>&lt;P&gt;I attempted to run it in a specified range, and the query ran successfully, however it ended up overwriting the entire workbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 17:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/292504#M60727</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-18T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293540#M61111</link>
      <description>&lt;P&gt;Does this code overwrite the existing workbook? I want to keep the other sheets, and just replace one of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the first line in the command results in an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;16&lt;BR /&gt;17 %utlfkil(d:/xls/existing_sheet.xlsx);&lt;BR /&gt;_&lt;BR /&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 19:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293540#M61111</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-23T19:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293784#M61222</link>
      <description>&lt;P&gt;*forehead slap. Thanks Reeza. I'll take a look at the Wiki!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 17:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293784#M61222</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-24T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293785#M61223</link>
      <description>&lt;P&gt;That's very prudent insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree-- excel is not a reporting suite, but when it comes to analysis, oftentimes you find that ubiquity is key. (translation: this is the format my bosses want it in).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Spotfire isn't free.&lt;/P&gt;&lt;P&gt;2) That's what I'm trying to do, but the XLSX is being overwritten&lt;/P&gt;&lt;P&gt;3) This might be the only option. I'll export it to a seperate xlsx, and then use a vbscript to import it into the main folder&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 17:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/293785#M61223</guid>
      <dc:creator>JS</dc:creator>
      <dc:date>2016-08-24T17:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/509098#M136811</link>
      <description>&lt;P&gt;The question seems to have been asked a while ago, but I couldn't find an&amp;nbsp;easy fix on the web, thought I would share something that worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using SAS 9.4 and had the problem when exporting to a particular sheet to a workbook (with the replace option, as I needed it to replace the sheet). Not the scientific fix that worked for me was saving the spreadsheet I was exporting to, i.e. the template on a different Sheet to the one I was planning to export to and replace. This prevented SAS from wiping out the rest of the workbook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also add&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;DATA&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ; asleep = Sleep(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) ; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;RUN&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt; before&amp;nbsp;&amp;nbsp;every export to the workbook, makes SAS sleep for 10 seconds.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 14:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/509098#M136811</guid>
      <dc:creator>cristi549</dc:creator>
      <dc:date>2018-10-31T14:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export - To specific Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/517589#M139981</link>
      <description>&lt;P&gt;PROC EXPORT with DBMS=XLSX&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;can add/update a sheet&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;within an existing XLSX file. That's a relatively recent feature, added in SAS 9.4.&amp;nbsp; DBMS=XLSX works on Windows and Unix/Linux, and does not require any additional Microsoft code libraries or PC Files Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember, PROC EXPORT with DBMS=XLSX require the SAS/ACCESS to PC Files license/install.&amp;nbsp; If you're using SAS University Edition, this has everything that you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://blogs.sas.com/content/sasdummy/2014/09/21/ods-excel-and-proc-export-xlsx/" target="_self"&gt;a full example in this blog post&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 17:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-To-specific-Sheet/m-p/517589#M139981</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-11-30T17:35:44Z</dc:date>
    </item>
  </channel>
</rss>

