<?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: Why does SAS randomly report &amp;quot;Library WORK does not exist&amp;quot; during execution? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973861#M30253</link>
    <description>&lt;P&gt;The error message you are seeing is coming from the Red Hat operating system.&amp;nbsp; Please check with RH as to why you are receiving this error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An additional question, is your SAS WORK directory on an NFS file system?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2025 18:40:44 GMT</pubDate>
    <dc:creator>MargaretC</dc:creator>
    <dc:date>2025-09-01T18:40:44Z</dc:date>
    <item>
      <title>Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973860#M30252</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;We have a SAS script that runs every day. Most of the time it completes without any problems but randomly it fails with the error:&lt;/P&gt;
&lt;P&gt;ERROR: Library WORK does not exist&lt;/P&gt;
&lt;P&gt;The WORK library is in fact present and available when we check.&lt;/P&gt;
&lt;P&gt;Has anyone experienced this kind of intermittent issue before and could you share ideas on how to investigate the root cause?&lt;/P&gt;
&lt;P&gt;Environment details:&lt;BR /&gt;SAS 9.4 M6&lt;BR /&gt;OS: RedHat Linux&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 18:34:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973860#M30252</guid>
      <dc:creator>Mahis</dc:creator>
      <dc:date>2025-09-01T18:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973861#M30253</link>
      <description>&lt;P&gt;The error message you are seeing is coming from the Red Hat operating system.&amp;nbsp; Please check with RH as to why you are receiving this error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An additional question, is your SAS WORK directory on an NFS file system?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 18:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973861#M30253</guid>
      <dc:creator>MargaretC</dc:creator>
      <dc:date>2025-09-01T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973864#M30254</link>
      <description>&lt;P data-pm-slice="0 0 []"&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;The SAS WORK library is on a local file system dedicated specifically for SAS WORK not on NFS.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 19:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973864#M30254</guid>
      <dc:creator>Mahis</dc:creator>
      <dc:date>2025-09-01T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973866#M30255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445849"&gt;@Mahis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding this line at the start of your SAS script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname _all_ list ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It will write to the Log all the assigned library references&amp;nbsp; at the time of execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind, SAS WORK library is typically auto-assigned via specifying its root location in&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;sasv9.cfg file&lt;/LI&gt;
&lt;LI&gt;sasv9_local.cfg file&lt;/LI&gt;
&lt;LI&gt;-WORK &amp;lt;SomePath&amp;gt; command line option&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Check your deployment/execution settings are not negatively affecting where the -WORK is pointing to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 21:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973866#M30255</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-09-01T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973873#M30256</link>
      <description>&lt;P&gt;Adding the following two rows at the top of your code.&lt;BR /&gt;But that would cost you lots of storage at SAS service side, due to not delete the temporary datasets produced by your sas code.&lt;/P&gt;
&lt;PRE&gt;libname x '.';
options user=x ;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Sep 2025 07:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973873#M30256</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-09-02T07:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973924#M30257</link>
      <description>Does this error occur while the SAS code is running or is it preventing the SAS session from starting at all?&lt;BR /&gt;&lt;BR /&gt;SAS is provided a WORK option on startup specifying a parent location (e.g. /tmp). SAS will create a WORK library within that path specifically for it's process (e.g. /tmp/SAS_workFFFFFFFFFFF_hostname)&lt;BR /&gt;&lt;BR /&gt;If the parent path specified by the WORK option is not accessible, SAS will fail to start with an error:&lt;BR /&gt;$ ./sas -nodms -work /tmp2&lt;BR /&gt;&lt;BR /&gt;ERROR: Library WORK does not exist.&lt;BR /&gt;NOTE: Unable to initialize the options subsystem.&lt;BR /&gt;ERROR: (SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED.&lt;BR /&gt;ERROR: Unable to initialize the SAS kernel.&lt;BR /&gt;&lt;BR /&gt;If SAS is running and some process deletes the WORK directory it created, you'll see this error in your code execution:&lt;BR /&gt;? data test; x=1; run;&lt;BR /&gt;&lt;BR /&gt;ERROR: Library WORK does not exist.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;So, if you have some process set up to clean your WORK path periodically, it could be deleting your WORK directory from under you, causing this error.</description>
      <pubDate>Tue, 02 Sep 2025 18:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973924#M30257</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2025-09-02T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973989#M30259</link>
      <description>&lt;P&gt;In our case the script starts normally and runs through several steps without issues&lt;BR /&gt;The error appears only at the point where it needs to write an output dataset into WORK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Library WORK does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, the job keeps running until the end but whenever it references something that should be in WORK we get messages like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: File WORK.TEST1.DATA does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it looks like the WORK directory disappears (or becomes inaccessible) while the session is still active&lt;BR /&gt;The script itself doesn't stop completely it just keeps failing on any step that needs WORK&lt;/P&gt;
&lt;P&gt;This happens randomly maybe 3 times a month while most other days the script finishes without any problem&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2025 23:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973989#M30259</guid>
      <dc:creator>Mahis</dc:creator>
      <dc:date>2025-09-02T23:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973992#M30260</link>
      <description>&lt;P&gt;That seems consistent with a cleanup script that is accidentally removing WORK folders while the SAS process that is using them is still running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing to check is virus scans (and other scans) of the disk where WORK directories are made that might be temporarily locking access.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing to check is that the algorithm that is being used to generate the name of the directory used for work.&amp;nbsp; It that is accidentally causing two different processes to want to use the same name for the WORK library it might result in the first program having its work directory access removed because the new directory created for the second program is using different permission.&amp;nbsp; Or just plain deleting the files that the first program created.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 01:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/973992#M30260</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-09-03T01:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/974330#M30264</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445849"&gt;@Mahis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please check if the user has access to the location defined for work library.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 18:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/974330#M30264</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2025-09-06T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/975302#M30291</link>
      <description>&lt;P&gt;This is SAS 9.4M6, which is quite old. I have seen errors with WORK happen in the past where the (scheduled) execution of the cleanwork utility would interfere with the normal operation of SAS under certain timing conditions and sometimes ignoring the presence of an active process using the work location. It would always lead to a crashed SAS session.&lt;/P&gt;
&lt;P&gt;Have a look at how (if) you have setup cleanwork and maybe get a later version of it (call SAS). I highly doubt this utility is sensitive to the SAS release you are on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, consider upgrading to a later release.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 08:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/975302#M30291</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2025-09-18T08:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS randomly report "Library WORK does not exist" during execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/975326#M30292</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/445849"&gt;@Mahis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We are also on SAS 9.4M6&amp;nbsp; and do use cleanwork utility to cleanup the SASTemp which has users work artifacts.(Work Library).&lt;BR /&gt;In my experience, it has only deleted only those folders whose process does not exist. Never did I face a scenario where the artifacts of the running process have been deleted.&lt;BR /&gt;When you say "&lt;STRONG&gt;The error appears only at the point where it needs to write an output dataset into WORK&lt;/STRONG&gt;:" please examine if there are disk quota limits set at the OS level. May be the quota is being exceeded. (I understand that disk quotas may be set in terms of space or Inode numbers).&lt;BR /&gt;&amp;nbsp;Also consider the suggestion by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1759"&gt;@MargaretC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 16:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Why-does-SAS-randomly-report-quot-Library-WORK-does-not-exist/m-p/975326#M30292</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-09-18T16:28:13Z</dc:date>
    </item>
  </channel>
</rss>

