<?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 Access Violation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667906#M200106</link>
    <description>&lt;P&gt;That's a bug and should be referred to Tech Support.&lt;/P&gt;
&lt;P&gt;Even 20 tables trip it (though without access violation).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
29         proc delete data=data1-data20;run;

WARNING: File WORK.DATA1.DATA does not exist.
WARNING: File WORK.DATA2.DATA does not exist.
ERROR: The value DAT   is not a valid SAS name.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
ERROR: The value &amp;#143;À&amp;#5;DATA5&amp;#5;DATA6&amp;#5;DATA7&amp;#5;DATA8&amp;#5;DATA9 is not a valid SAS name.
WARNING: File WORK.DATA18.DATA does not exist.
WARNING: File WORK.DATA19.DATA does not exist.
WARNING: File WORK.DATA20.DATA does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2020 22:56:55 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-07-08T22:56:55Z</dc:date>
    <item>
      <title>PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667776#M200047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;while writing a new analysis, I often create lots of temporary debug tables with automatic names, i.e. using _DATA_ as a dataset name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I want to delete these debug tables in bulk, instead of having to delete them manually, I run a code snippet like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc delete data=data1-data200;
run;&lt;/PRE&gt;
&lt;P&gt;In theory, PROC DELETE should not worry if all 200 tables exists or not: if they don't, most of the times it justs deletes what it finds, and issues a warning for what it doesn't find.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Very often, though, the procedure crashes with an error log like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The value &amp;#143;À&amp;#7;DATA157&amp;#7;DATA158&amp;#7;DATA159&amp;#7;DATA1 is not a valid SAS name.
ERROR: The value 7&amp;#7;DATA168&amp;#7;DATA169&amp;#7;DATA170&amp;#7;DATA17 is not a valid SAS name.
ERROR: The value 74&amp;#7;DATA175&amp;#7;DATA176&amp;#7;DATA177&amp;#7;DATA1 is not a valid SAS name.
ERROR: The value &amp;#7;DATA181        &amp;#20;   @    &amp;#1;  @    is not a valid SAS name.

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following traceback information:

The SAS task name is [DELETE]
ERROR:  Write Access Violation DELETE
Exception occurred at (242B159B)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
00000000242B159B  000000002E2AFBC0  sasdelet:tkvercn1+0x55B
00000000242B11FB  000000002E2AFBF0  sasdelet:tkvercn1+0x1BB
0000000003238A2B  000000002E2AFBF8  sashost:Main+0x10F0B
000000000323E66D  000000002E2AFF50  sashost:Main+0x16B4D
000000007793556D  000000002E2AFF58  kernel32:BaseThreadInitThunk+0xD
0000000077B9372D  000000002E2AFF88  ntdll:RtlUserThreadStart+0x1D
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am no expert, but it seems like a buffer overrun to me. I guess that there's a limit on how many datasets you can delete?&lt;BR /&gt;If so, what are the suggested alternatives for deleting datasets in bulk?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667776#M200047</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2020-07-08T16:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667806#M200059</link>
      <description>&lt;P&gt;"Code like" or "exactly that code"?&lt;/P&gt;
&lt;P&gt;If the code is at all different you should include the exact code submitted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seeing a value like&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;74&amp;#7;DATA175&amp;#7;DATA176&amp;#7;DATA177&amp;#7;DATA1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where that initial 74 looks like it should belong to a "Data174".&lt;/P&gt;
&lt;P&gt;You may want to examine that string in something that shows hidden characters. The Copy and Paste here may hide it but there are other characters than spaces between data176 data177. Might almost suspect a malformed macro variable ...&lt;/P&gt;
&lt;P&gt;The error message is chopping your variable list into 32 character chunks as that is the largest data set name allowed. I have no clue where those other characters are coming from though.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 18:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667806#M200059</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-08T18:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667831#M200073</link>
      <description>&lt;P&gt;It is the exact code I used to obtain the log error.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 19:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667831#M200073</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2020-07-08T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667865#M200085</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro delete;
proc datasets lib=work nolist;
delete %do i = 1 %to 200;
            data&amp;amp;i.
           %end;;
run;
quit;
%mend delete;
%delete;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667865#M200085</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-07-08T20:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667870#M200086</link>
      <description>&lt;P&gt;Does this program produce the same error?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=data: ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 20:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667870#M200086</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-08T20:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667896#M200102</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Does this program produce the same error?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=data: ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;At least my version yields:&lt;/P&gt;
&lt;PRE&gt;165  proc delete data=data: ;
                          -
                          22
                          200
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, -, '.'.

ERROR 200-322: The symbol is not recognized and will be ignored.

166  run;

&lt;/PRE&gt;
&lt;P&gt;Though this doesn't seem to have the same problem:&lt;/P&gt;
&lt;PRE&gt;proc datasets library=work;
   delete data: ;
run;
quit;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jul 2020 22:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667896#M200102</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-08T22:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667906#M200106</link>
      <description>&lt;P&gt;That's a bug and should be referred to Tech Support.&lt;/P&gt;
&lt;P&gt;Even 20 tables trip it (though without access violation).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
29         proc delete data=data1-data20;run;

WARNING: File WORK.DATA1.DATA does not exist.
WARNING: File WORK.DATA2.DATA does not exist.
ERROR: The value DAT   is not a valid SAS name.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
ERROR: The value &amp;#143;À&amp;#5;DATA5&amp;#5;DATA6&amp;#5;DATA7&amp;#5;DATA8&amp;#5;DATA9 is not a valid SAS name.
WARNING: File WORK.DATA18.DATA does not exist.
WARNING: File WORK.DATA19.DATA does not exist.
WARNING: File WORK.DATA20.DATA does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
WARNING: File WORK does not exist.
NOTE: The SAS System stopped processing this step because of errors.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 22:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667906#M200106</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-08T22:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667969#M200137</link>
      <description>&lt;P&gt;In which environment do you run that?&lt;/P&gt;
&lt;P&gt;Because this worked for me:&lt;/P&gt;
&lt;PRE&gt; 72         
 73         proc delete data=data1-data20;
 74         run;
 
 WARNING: Datei WORK.DATA1.DATA existiert nicht.
 WARNING: Datei WORK.DATA2.DATA existiert nicht.
 WARNING: Datei WORK.DATA3.DATA existiert nicht.
 WARNING: Datei WORK.DATA4.DATA existiert nicht.
 WARNING: Datei WORK.DATA5.DATA existiert nicht.
 WARNING: Datei WORK.DATA6.DATA existiert nicht.
 WARNING: Datei WORK.DATA7.DATA existiert nicht.
 WARNING: Datei WORK.DATA8.DATA existiert nicht.
 WARNING: Datei WORK.DATA9.DATA existiert nicht.
 WARNING: Datei WORK.DATA10.DATA existiert nicht.
 WARNING: Datei WORK.DATA11.DATA existiert nicht.
 WARNING: Datei WORK.DATA12.DATA existiert nicht.
 WARNING: Datei WORK.DATA13.DATA existiert nicht.
 WARNING: Datei WORK.DATA14.DATA existiert nicht.
 WARNING: Datei WORK.DATA15.DATA existiert nicht.
 WARNING: Datei WORK.DATA16.DATA existiert nicht.
 WARNING: Datei WORK.DATA17.DATA existiert nicht.
 WARNING: Datei WORK.DATA18.DATA existiert nicht.
 WARNING: Datei WORK.DATA19.DATA existiert nicht.
 WARNING: Datei WORK.DATA20.DATA existiert nicht.
 NOTE:  Verwendet wurde: PROZEDUR DELETE - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;Both in University Edition (Linux) on a Mac and in our AIX-based server.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 07:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667969#M200137</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-09T07:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation Der deutsche Einfluss macht einen Unterschied</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667977#M200140</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&amp;gt; &lt;EM&gt;In which environment do you run that?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;9.4M2 on windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either my version is too old, or SAS Windows gets confused, or&amp;nbsp;Der deutsche Einfluss macht einen Unterschied.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 07:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667977#M200140</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-09T07:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation Der deutsche Einfluss macht einen Unterschied</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667979#M200141</link>
      <description>&lt;P&gt;It would be great if someone with 9.4M6 on Windows (or 9.4M&lt;EM&gt;less_than_6&lt;/EM&gt; on UNIX) could chime in with a test. A simple google search for "SAS hotfix proc delete" did not reveal if there was a recent fix.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 07:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/667979#M200141</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-09T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC DELETE Access Violation Der deutsche Einfluss macht einen Unterschied</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/668050#M200170</link>
      <description>&lt;P&gt;My version is SAS 9.4 TS Level 1M2 platform X64_7PRO&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad I am not the only one who saw it! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 14:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-DELETE-Access-Violation/m-p/668050#M200170</guid>
      <dc:creator>gabonzo</dc:creator>
      <dc:date>2020-07-09T14:18:19Z</dc:date>
    </item>
  </channel>
</rss>

