<?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 PROC IMPORT &amp; EXPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-EXPORT/m-p/23149#M5101</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am reading an excel sheet using proc import and after i process my data I want to write my updated data to the same excel sheet. &lt;BR /&gt;
&lt;BR /&gt;
But it doesnt do it. It writes to an another tab. here is the log code:&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= test.EXTRACTMASTER&lt;BR /&gt;
14                     DATAFILE= "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
15                     DBMS=EXCEL REPLACE;&lt;BR /&gt;
16              SHEET="Sheet1$";&lt;BR /&gt;
17              GETNAMES=YES;&lt;BR /&gt;
18              MIXED=NO;&lt;BR /&gt;
19              SCANTEXT=YES;&lt;BR /&gt;
20              USEDATE=YES;&lt;BR /&gt;
21              SCANTIME=YES;&lt;BR /&gt;
22         RUN;&lt;BR /&gt;
&lt;BR /&gt;
Proc export data = test.updated_excel&lt;BR /&gt;
152        outfile = "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
153        dbms = excel&lt;BR /&gt;
154        REPLACE;&lt;BR /&gt;
155        SHEET="Sheet1$";&lt;BR /&gt;
156        run;&lt;BR /&gt;
&lt;BR /&gt;
&amp;#12;1                                           The SAS System             13:44 Monday, November 30, 2009&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;
ERROR: The MS Excel table Sheet1$ has been opened for OUTPUT. This table already exists, or there is &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;
       a name conflict with an existing object. This table will not be replaced. This engine does not &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;
       support the REPLACE option.&lt;BR /&gt;
       support the REPLACE option.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
&lt;BR /&gt;
wondering if there is fix to it.</description>
    <pubDate>Mon, 30 Nov 2009 18:48:46 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-11-30T18:48:46Z</dc:date>
    <item>
      <title>PROC IMPORT &amp; EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-EXPORT/m-p/23149#M5101</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am reading an excel sheet using proc import and after i process my data I want to write my updated data to the same excel sheet. &lt;BR /&gt;
&lt;BR /&gt;
But it doesnt do it. It writes to an another tab. here is the log code:&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= test.EXTRACTMASTER&lt;BR /&gt;
14                     DATAFILE= "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
15                     DBMS=EXCEL REPLACE;&lt;BR /&gt;
16              SHEET="Sheet1$";&lt;BR /&gt;
17              GETNAMES=YES;&lt;BR /&gt;
18              MIXED=NO;&lt;BR /&gt;
19              SCANTEXT=YES;&lt;BR /&gt;
20              USEDATE=YES;&lt;BR /&gt;
21              SCANTIME=YES;&lt;BR /&gt;
22         RUN;&lt;BR /&gt;
&lt;BR /&gt;
Proc export data = test.updated_excel&lt;BR /&gt;
152        outfile = "V:\LifeMaster\2009-05TestNS\RawData\ExtractMaster.xls"&lt;BR /&gt;
153        dbms = excel&lt;BR /&gt;
154        REPLACE;&lt;BR /&gt;
155        SHEET="Sheet1$";&lt;BR /&gt;
156        run;&lt;BR /&gt;
&lt;BR /&gt;
&amp;#12;1                                           The SAS System             13:44 Monday, November 30, 2009&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;
ERROR: The MS Excel table Sheet1$ has been opened for OUTPUT. This table already exists, or there is &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;
       a name conflict with an existing object. This table will not be replaced. This engine does not &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;
       support the REPLACE option.&lt;BR /&gt;
       support the REPLACE option.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
ERROR: Export unsuccessful.  See SAS Log for details.&lt;BR /&gt;
&lt;BR /&gt;
wondering if there is fix to it.</description>
      <pubDate>Mon, 30 Nov 2009 18:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-EXPORT/m-p/23149#M5101</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-11-30T18:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT &amp; EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-EXPORT/m-p/23150#M5102</link>
      <description>Honestly, we're not seeing the entire SAS log - there is much missing which is likely contributing to your problem.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you turn on max diagnostics with the command below, then re-post with the entire log, not just snippets.  And it may be worthwhile to do some additional desk-checking before re-posting - possibly you will see the problem cause:&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS SOURCE SOURCE2 MACROGEN SYMBOLGEN MLOGIC;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 30 Nov 2009 18:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-EXPORT/m-p/23150#M5102</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-30T18:57:51Z</dc:date>
    </item>
  </channel>
</rss>

