<?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: Problem of this export in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118323#M32657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;I don't have any problem to run your code and replace the old same named file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try the modified code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname myfile "C:\Temp\test8.xls";&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop table myfile."a$"n;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;libname myfile clear;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\test8.xls"&lt;/P&gt;&lt;P&gt;DBMS = excel REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "a";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 14:23:40 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-09-11T14:23:40Z</dc:date>
    <item>
      <title>Problem of this export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118322#M32656</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 to update an exist excel file,I attached an excel file and use the SAS code below to update this file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have get a result not as my expected,because the old sheet a didn't replace by sashelp.class but create a new sheet named a1.&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;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\test8.xls"&lt;/P&gt;&lt;P&gt;DBMS = /*EXCEL2002*/excel REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "a";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 13:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118322#M32656</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-09-11T13:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of this export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118323#M32657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;I don't have any problem to run your code and replace the old same named file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try the modified code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname myfile "C:\Temp\test8.xls";&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop table myfile."a$"n;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;libname myfile clear;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\test8.xls"&lt;/P&gt;&lt;P&gt;DBMS = excel REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "a";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 14:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118323#M32657</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-11T14:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of this export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118324#M32658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem still happen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I followed your method, firstly the drop table statement &lt;STRONG&gt;ONLY&lt;/STRONG&gt; remove the content of sheet &lt;STRONG&gt;a&lt;/STRONG&gt;&amp;nbsp; to an empty sheet(didn't delete the sheet but just replace it with an empty sheet)&lt;BR /&gt; then still create a new sheet named a1 using sashelp.clas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 15:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118324#M32658</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-09-11T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of this export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118325#M32659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/20/923.html" title="http://support.sas.com/kb/20/923.html"&gt;http://support.sas.com/kb/20/923.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you scroll to the bottom of the the communities, in very small fine print you'll see how to open a track with tech support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 16:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118325#M32659</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-09-11T16:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of this export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118326#M32660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FILENAME MyFile "C:\temp\aa\cc\test8.xls"&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp; DATA _NULL_ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = FDELETE('MyFile') ;&lt;BR /&gt;&amp;nbsp; RUN ;&lt;/P&gt;&lt;P&gt;FILENAME MyFile CLEAR ;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "C:\Temp\aa\cc\test8.xls"&lt;/P&gt;&lt;P&gt;DBMS = excel2002 REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "a";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will delete all sheet including b,c,but work for a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 17:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-this-export/m-p/118326#M32660</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-09-12T17:08:42Z</dc:date>
    </item>
  </channel>
</rss>

