<?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 Import and export to same file. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Import-and-export-to-same-file/m-p/75740#M21986</link>
    <description>Hi,&lt;BR /&gt;
I'm trying to Import an excel file process it and export to the same file. When I try doing this I get this following error. Can SAS handle this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
WARNING: File _IMEX_.'Sheet1$$'n.DATA does not exist.&lt;BR /&gt;
WARNING: Table _IMEX_."Sheet1$$" has not been dropped.&lt;BR /&gt;
ERROR: The MS Excel table Sheet1$ has been opened for OUTPUT. This table already exists, or there is&lt;BR /&gt;
       a name conflict with an existing object. This table will not be replaced. This engine does not&lt;BR /&gt;
       support the REPLACE option.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
&lt;BR /&gt;
My code:&lt;BR /&gt;
PROC IMPORT OUT= WORK.EXTRACTMASTER&lt;BR /&gt;
            DATAFILE= "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     SHEET="Sheet1$"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Proc export data = work.updated_excel&lt;BR /&gt;
outfile = "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
dbms = excel&lt;BR /&gt;
replace;&lt;BR /&gt;
SHEET="Sheet1$";&lt;BR /&gt;
run;</description>
    <pubDate>Wed, 14 Oct 2009 19:55:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-10-14T19:55:28Z</dc:date>
    <item>
      <title>Import and export to same file.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-and-export-to-same-file/m-p/75740#M21986</link>
      <description>Hi,&lt;BR /&gt;
I'm trying to Import an excel file process it and export to the same file. When I try doing this I get this following error. Can SAS handle this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
WARNING: File _IMEX_.'Sheet1$$'n.DATA does not exist.&lt;BR /&gt;
WARNING: Table _IMEX_."Sheet1$$" has not been dropped.&lt;BR /&gt;
ERROR: The MS Excel table Sheet1$ has been opened for OUTPUT. This table already exists, or there is&lt;BR /&gt;
       a name conflict with an existing object. This table will not be replaced. This engine does not&lt;BR /&gt;
       support the REPLACE option.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
&lt;BR /&gt;
My code:&lt;BR /&gt;
PROC IMPORT OUT= WORK.EXTRACTMASTER&lt;BR /&gt;
            DATAFILE= "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls" &lt;BR /&gt;
            DBMS=EXCEL REPLACE;&lt;BR /&gt;
     SHEET="Sheet1$"; &lt;BR /&gt;
     GETNAMES=YES;&lt;BR /&gt;
     MIXED=NO;&lt;BR /&gt;
     SCANTEXT=YES;&lt;BR /&gt;
     USEDATE=YES;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Proc export data = work.updated_excel&lt;BR /&gt;
outfile = "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
dbms = excel&lt;BR /&gt;
replace;&lt;BR /&gt;
SHEET="Sheet1$";&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 14 Oct 2009 19:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-and-export-to-same-file/m-p/75740#M21986</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-14T19:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import and export to same file.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-and-export-to-same-file/m-p/75741#M21987</link>
      <description>Try using a stylesheet name without the $ sign to export.</description>
      <pubDate>Wed, 14 Oct 2009 20:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-and-export-to-same-file/m-p/75741#M21987</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-10-14T20:31:24Z</dc:date>
    </item>
  </channel>
</rss>

