<?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 Problem of replace an exist excel file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117296#M32359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem of creating a new excel file from SAS and replace an exist&amp;nbsp; excel file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example ,I have c:\temp\one.xls with a sheet named sheetone.&lt;/P&gt;&lt;P&gt;I want to update this excel file use SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\one.xls"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL2002 REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "sheetone";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt; this will not replace sheetone, it will create another sheet named sheetone&lt;STRONG&gt;1&lt;/STRONG&gt;.&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;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 22:01:42 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-09-10T22:01:42Z</dc:date>
    <item>
      <title>Problem of replace an exist excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117296#M32359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem of creating a new excel file from SAS and replace an exist&amp;nbsp; excel file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example ,I have c:\temp\one.xls with a sheet named sheetone.&lt;/P&gt;&lt;P&gt;I want to update this excel file use SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\one.xls"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL2002 REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "sheetone";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt; this will not replace sheetone, it will create another sheet named sheetone&lt;STRONG&gt;1&lt;/STRONG&gt;.&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;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 22:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117296#M32359</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-09-10T22:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of replace an exist excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117297#M32360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; You might want to work with Tech Support. I don't remember a DBMS= option named EXCEL2002. It looks in the doc, like the valid values are:&lt;/P&gt;&lt;P&gt;EXCEL, EXCEL4, EXCEL5, EXCELCS and XLS and that EXCEL covers all versions from 97 thru 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So if you are having issues with your PROC EXPORT, you might work with Tech Support to figure out whether there are other issues at work (such as the 32-bit or 64-bit status of both SAS and Microsoft Office; the operating system (Windoes 7 or Windows XP) or the version of SAS you are using 9.2 versus 9.3 versus using SAS EG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 03:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117297#M32360</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-11T03:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of replace an exist excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117298#M32361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike: In answer to how to open a ticket with tech support:&amp;nbsp; &lt;A href="http://support.sas.com/ctx/supportform//createForm" title="http://support.sas.com/ctx/supportform//createForm"&gt;http://support.sas.com/ctx/supportform//createForm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weren't there a number of other posts in this thread?&amp;nbsp; If you delete a message you end up also deleting all of the responses to that message. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-replace-an-exist-excel-file/m-p/117298#M32361</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-09-11T20:54:54Z</dc:date>
    </item>
  </channel>
</rss>

