<?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: how to delete excel file when exporting in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183244#M46671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using proc export then add the REPLACE option to overwrite the existing file. No need for a separate step to delete.&lt;BR /&gt;proc export data=yourdate outfile="your file name" dbms=excelcs (or which ever you are using) REPLACE; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 20:21:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-01-14T20:21:57Z</dc:date>
    <item>
      <title>how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183242#M46669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a data step that exports to excel . I need to delet /remove&amp;nbsp; the original file. How do I go about deleting the file&amp;nbsp; before the export process starts&lt;/P&gt;&lt;P&gt;I currently have this script for deleting&amp;nbsp; it's not working &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename myfile "c:\daily\GT.xlsx";&lt;/P&gt;&lt;P&gt;rc=fdelete(myfile);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;filename myfileclear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 19:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183242#M46669</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-01-14T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183243#M46670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;filename myfile "c:\daily\GT.xlsx";&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;rc=fdelete(&lt;STRONG&gt;"myfile"&lt;/STRONG&gt;);&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;filename myfileclear;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #353535; font-family: lato, arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; font-size: 13.6000003814697px; background-color: #ffffff;"&gt;You must have permission to delete the file&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;CTorres&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 20:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183243#M46670</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2015-01-14T20:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183244#M46671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using proc export then add the REPLACE option to overwrite the existing file. No need for a separate step to delete.&lt;BR /&gt;proc export data=yourdate outfile="your file name" dbms=excelcs (or which ever you are using) REPLACE; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 20:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183244#M46671</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-14T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183245#M46672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Ive tried that option an it doesn't replace the original file it happen when I convert&amp;nbsp; to xlsx format.&lt;/P&gt;&lt;P&gt;so deleteing it is best option since it runs every three hours..&lt;/P&gt;&lt;P&gt;i Have this code that deletes what I need but the cmd prompt window stays open any ideas how to close it?&lt;/P&gt;&lt;P&gt;%let fname =GT.xlsx;&lt;/P&gt;&lt;P&gt;%let dir=H:\Test\;&lt;/P&gt;&lt;P&gt;x del "&amp;amp;edit.\&amp;amp;fname.";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 22:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183245#M46672</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2015-01-14T22:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183246#M46673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for your question: options noxwait;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally I prefer &lt;A __default_attr="808936" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s solution, as it is more OS independent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 22:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183246#M46673</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-01-14T22:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete excel file when exporting</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183247#M46674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;options noxwait; before the X command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 22:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-delete-excel-file-when-exporting/m-p/183247#M46674</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-14T22:36:22Z</dc:date>
    </item>
  </channel>
</rss>

