<?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: Output to Excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62875#M17892</link>
    <description>Here is the error message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Libref MYXLS was successfully assigned as follows:&lt;BR /&gt;
      Engine:        EXCEL&lt;BR /&gt;
      Physical Name: U:\QEP\Revenue\Revenue_Statistics\DSH_DATA\RevStats.xls&lt;BR /&gt;
&lt;BR /&gt;
ERROR: The MS Excel table check has been opened for OUTPUT. This table already exists, or there is a name conflict with an existing object. This&lt;BR /&gt;
       table will not be replaced. This engine does not support the REPLACE option.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           3:03.54&lt;BR /&gt;
      cpu time            0.11 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
659    data myxls.check;&lt;BR /&gt;
660    set b2;&lt;BR /&gt;
661    libname myxls clear;&lt;BR /&gt;
NOTE: Libref MYXLS has been deassigned.</description>
    <pubDate>Mon, 10 Aug 2009 18:31:56 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-08-10T18:31:56Z</dc:date>
    <item>
      <title>Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62873#M17890</link>
      <description>I'm using the following code to output to Excel; but I'm noticing that it doesn't REPLACE old data with new.  What would be a better solution if I'm constantly updating data with new data that I want written out to same excel file and worksheet.  Thanks&lt;BR /&gt;
&lt;BR /&gt;
OPTION PAGENO=1;&lt;BR /&gt;
  libname myxls "U:\QEP\Revenue\Revenue_Statistics\DSH_DATA\RevStats.xls";&lt;BR /&gt;
  data myxls.check;&lt;BR /&gt;
  set b2;&lt;BR /&gt;
  libname myxls clear;</description>
      <pubDate>Mon, 10 Aug 2009 14:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62873#M17890</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-10T14:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62874#M17891</link>
      <description>What's unclear from your post is whether you are getting any type of SAS error in your SAS-generated log output.  This would be useful to learn. Also, if there is some error, I recommend you reply to your post with a COPY/PASTE snapshot from the error point leading up to the error condition.  Lastly, are you able to use this same code to generate a new Excel document -- again something useful for your own (as well as the forum) debugging response/input.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 10 Aug 2009 16:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62874#M17891</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-10T16:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62875#M17892</link>
      <description>Here is the error message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Libref MYXLS was successfully assigned as follows:&lt;BR /&gt;
      Engine:        EXCEL&lt;BR /&gt;
      Physical Name: U:\QEP\Revenue\Revenue_Statistics\DSH_DATA\RevStats.xls&lt;BR /&gt;
&lt;BR /&gt;
ERROR: The MS Excel table check has been opened for OUTPUT. This table already exists, or there is a name conflict with an existing object. This&lt;BR /&gt;
       table will not be replaced. This engine does not support the REPLACE option.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           3:03.54&lt;BR /&gt;
      cpu time            0.11 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
659    data myxls.check;&lt;BR /&gt;
660    set b2;&lt;BR /&gt;
661    libname myxls clear;&lt;BR /&gt;
NOTE: Libref MYXLS has been deassigned.</description>
      <pubDate>Mon, 10 Aug 2009 18:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62875#M17892</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-10T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62876#M17893</link>
      <description>Here is another error message I received when I update the data and try to output updated data to the existing excel file and spreadsheet.&lt;BR /&gt;
&lt;BR /&gt;
855&lt;BR /&gt;
856  options pageno=1;&lt;BR /&gt;
857   libname myxls "U:\QEP\Revenue\Revenue_Statistics\DSH_DATA\RevStats.xls";&lt;BR /&gt;
NOTE: Libref MYXLS was successfully assigned as follows:&lt;BR /&gt;
      Engine:        EXCEL&lt;BR /&gt;
      Physical Name: U:\QEP\Revenue\Revenue_Statistics\DSH_DATA\RevStats.xls&lt;BR /&gt;
858    data myxls.RevStats;&lt;BR /&gt;
859    set b2;&lt;BR /&gt;
860    libname myxls clear;&lt;BR /&gt;
NOTE: Libref MYXLS has been deassigned.&lt;BR /&gt;
861&lt;BR /&gt;
&lt;BR /&gt;
ERROR: Libname MYXLS is not assigned.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.06 seconds&lt;BR /&gt;
      cpu time            0.00 seconds</description>
      <pubDate>Mon, 10 Aug 2009 19:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62876#M17893</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-10T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62877#M17894</link>
      <description>With your last error log, you need to code a RUN;   statement before the LIBNAME.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;   website has SAS-hosted DOC and supplemental technical and conference papers - available using either the website SEARCH facility or Google - here is one I found which discusses REPLACE not being an option, as well as showing applicable examples:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 10 Aug 2009 19:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62877#M17894</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-10T19:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Output to Excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62878#M17895</link>
      <description>Other options to consider might be PROC EXPORT with the REPLACE option, or using the X statement to delete the existing file from your operating system. &lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000316287.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000316287.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
X statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000212624.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000212624.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Wendy</description>
      <pubDate>Mon, 10 Aug 2009 20:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-to-Excel/m-p/62878#M17895</guid>
      <dc:creator>WendyT</dc:creator>
      <dc:date>2009-08-10T20:02:25Z</dc:date>
    </item>
  </channel>
</rss>

