<?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: proc delete data set if exists in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755391#M238378</link>
    <description>&lt;P&gt;Proc datasets with the NOWARN and NODETAILS options.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 15:03:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-20T15:03:15Z</dc:date>
    <item>
      <title>proc delete data set if exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755250#M238321</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to see a code that delete a data set if the data set exists.&lt;/P&gt;
&lt;P&gt;When I run the following code for a data set that doesn't exist then I get warning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: File work.XX.DATA does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc delete data=XX;Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 07:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755250#M238321</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-07-20T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc delete data set if exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755252#M238323</link>
      <description>&lt;P&gt;Wrap it into %IF %THEN:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %sysfunc(exist(xx))
%then %do;
proc delete data=XX;
run;
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755252#M238323</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-20T08:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc delete data set if exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755334#M238360</link>
      <description>Write some dummy code before PROC DELETE ?&lt;BR /&gt;&lt;BR /&gt;data xx;xx=1;run;&lt;BR /&gt;proc delete data=XX;Run;</description>
      <pubDate>Tue, 20 Jul 2021 12:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755334#M238360</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-07-20T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc delete data set if exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755391#M238378</link>
      <description>&lt;P&gt;Proc datasets with the NOWARN and NODETAILS options.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/755391#M238378</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-20T15:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc delete data set if exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/758489#M239487</link>
      <description>The following macro can be used to remove multiple tables without warnings if they don't exist, it will also work just the same for views (so you don't need to test for that either):&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://core.sasjs.io/mp__dropmembers_8sas.html" target="_blank"&gt;https://core.sasjs.io/mp__dropmembers_8sas.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2021 19:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-delete-data-set-if-exists/m-p/758489#M239487</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-07-30T19:32:37Z</dc:date>
    </item>
  </channel>
</rss>

