<?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 work library Dataset kill option : Error :Work dataset does not exists in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557379#M155376</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I ve tried below option and i am getting same error as work.table does not exist error.please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 08:26:24 GMT</pubDate>
    <dc:creator>JJP1</dc:creator>
    <dc:date>2019-05-09T08:26:24Z</dc:date>
    <item>
      <title>Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557358#M155365</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am using below user written code to kill the datasets in work library in SAS DI job librray after job's logic is completed .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets library=work kill;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are so many work tables are created as part of this SAS DI job ,But after running job we are getting error in above mentioned user written node that&amp;nbsp; only work.table1 and work.table2 does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please suggest how can we resolve the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 06:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557358#M155365</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-09T06:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557360#M155367</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library=work kill nowarn nolist;
run;
quit; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2019 06:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557360#M155367</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-05-09T06:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557379#M155376</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I ve tried below option and i am getting same error as work.table does not exist error.please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 08:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557379#M155376</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-09T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557387#M155381</link>
      <description>&lt;P&gt;Try sharing or posting an excerpt of&amp;nbsp;the log where the ERROR first occurred.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 09:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557387#M155381</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2019-05-09T09:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557397#M155386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually we cretead parametrised SAS DI job, in it we used userwritten node code to kill the work datasets.&lt;/P&gt;&lt;P&gt;and this parameterised job is being used&amp;nbsp; in loop job and running the loop job based on year by year&lt;/P&gt;&lt;P&gt;,so when we run loop job&amp;nbsp; we are getting error as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist&lt;/P&gt;&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;loop job work fine with out user written node(where we are killing work tables ) please help.but we do not want work tables to be stored&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557397#M155386</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-09T10:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557450#M155401</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Actually we cretead parametrised SAS DI job, in it we used userwritten node code to kill the work datasets.&lt;/P&gt;
&lt;P&gt;and this parameterised job is being used&amp;nbsp; in loop job and running the loop job based on year by year&lt;/P&gt;
&lt;P&gt;,so when we run loop job&amp;nbsp; we are getting error as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist&lt;/P&gt;
&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;loop job work fine with out user written node(where we are killing work tables ) please help.but we do not want work tables to be stored&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Looks like more of the actual code with the error message. Copy both the code and the error.&lt;/P&gt;
&lt;P&gt;Something is explicitly naming a data set for some use and possibly your Proc DATASETS deleted it before this other code tries to use the data set.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557450#M155401</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-09T14:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557646#M155480</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Actually we cretead parametrised SAS DI job, in it we used userwritten node code to kill the work datasets.&lt;/P&gt;
&lt;P&gt;and this parameterised job is being used&amp;nbsp; in loop job and running the loop job based on year by year&lt;/P&gt;
&lt;P&gt;,so when we run loop job&amp;nbsp; we are getting error as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist&lt;/P&gt;
&lt;P&gt;ERROR: File WORK.WWWWWW.DATA does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;loop job work fine with out user written node(where we are killing work tables ) please help.but we do not want work tables to be stored&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Provide the code and/or the SAS log where you're getting these errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC DATASETS LIB=WORK KILL NOWARN NOLIST will not generate this error for non-existent data sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Interesting naming convention for your dataset names &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 23:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/557646#M155480</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-05-09T23:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558193#M155766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not getting any error now if i use below code in user written node transformation,but i really did not understood why i was getting error in previous code and now not .even though the code looks almost same.could you please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options dlcreatedir;&lt;BR /&gt;libname mywork "%sysfunc(getoption(WORK))/mywork";&lt;/P&gt;&lt;P&gt;/* optional: one-level names will default to MYWORK lib */&lt;BR /&gt;options user=mywork;&lt;BR /&gt;/* cleanup MYWORK before the next task */&lt;BR /&gt;proc datasets lib=mywork kill;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 05:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558193#M155766</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-13T05:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558194#M155767</link>
      <description>&lt;P&gt;KILL will just delete whatever table there is in WORK. And it will KILL everything at once so you don't need to have this in a loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF you want to delete tables targeted (via a loop) but you can't be 100% sure that the table actually exists: Add NOLIST NOWARN to PROC DATASETS. NOLIST won't create a report (so add this option also if using KILL), NOWARN will suppress any Warning for deletion attempts on tables that don't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND... may be also add MT=(DATA VIEW) to ensure that you also delete views if they exist. May be that's the cause of your initial problem - the name you're using is actually a view but proc datasets was only configured to include tables.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 06:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558194#M155767</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-13T06:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558195#M155768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for explanation.would you please help where can we add the view option in proc datasets code to delete if there is any view please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 06:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558195#M155768</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-05-13T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558198#M155769</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here you go&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create view vtest as select * from sashelp.class;
quit;

/* option 1: using DELETE statement */
proc datasets lib=work nolist nowarn mt=(data view);
  delete vtest;
  run;
quit;

/* option 2: using KILL option */
proc datasets lib=work kill nolist nowarn mt=(data view);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as a comment:&lt;/P&gt;
&lt;P&gt;DIS jobs in a PROD environment are run in batch. SAS will automatically clean out the WORK area once a SAS Session terminates. For this reason I'd only bother to clean-out work if this is an intermediary step in your DIS job AND your tables in WORK are that big that you risk to exceed your WORK space limits.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as a last idea: I guess you want to delete all SAS DIS internally created tables and views. They all follow a naming pattern with names starting always with W. IF you follow a naming convention to never use W as beginning for any of the WORK tables/views you've got under control then you could use code as below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc datasets lib=work nolist nowarn mt=(data view);
  delete w:;
  run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 06:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558198#M155769</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-13T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc work library Dataset kill option : Error :Work dataset does not exists</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558481#M155863</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;:&amp;nbsp; I'm glad you "solved" your problem.&amp;nbsp; However, time and time and time again, several folks asked that you post the actual code causing the error.&amp;nbsp; Yet nowhere in this thread did you do so.&amp;nbsp; A bit of advice:&amp;nbsp; for future posts, if folks ask you to post your actual code causing the error, I strongly suggest you do so.&amp;nbsp; That way you will actually learn something from the process, and folks will be better equipped to help you.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 21:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-work-library-Dataset-kill-option-Error-Work-dataset-does/m-p/558481#M155863</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-05-13T21:57:54Z</dc:date>
    </item>
  </channel>
</rss>

