<?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: Understanding SAS working directory and Orphaned folders in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468153#M13344</link>
    <description>&lt;P&gt;On a server, you will have several SAS processes running all the time, metadata server, OLAP server, pooled workspace servers, stored process servers, all having their own WORKs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The recently used path for storing code files is in one of the xml files in %appdata%\SAS\EnterpriseGuide\7.1.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 17:55:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-06-06T17:55:16Z</dc:date>
    <item>
      <title>Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467891#M13328</link>
      <description>&lt;P&gt;Hello Community, I like to understand how SAS working directories works and also how to delete orphaned (I think) folders.&lt;/P&gt;&lt;P&gt;I have SAS installed on a windows servers.&amp;nbsp; From EG when I run this code&lt;BR /&gt;&lt;STRONG&gt;proc options option=work;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;result is:&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;SAS (r) Proprietary Software Release 9.4&amp;nbsp; TS1M4&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;WORK=W:\SAS\SASWork\_TD7652_SASVASERVER_\Prc2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I run this code&lt;BR /&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;rc=dlgcdir();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;put rc=;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;result is:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;NOTE: The current working directory is "D:\SAS\SASConfig\VA\Lev1\SASAppVA".&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp;&lt;BR /&gt;Both W: and &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt; are locations on my VA server.&amp;nbsp; When I run a code on EG, for example, I see a folder is getting created on the VA server in W:\SAS\SASWork\ _TD7652_SASVASERVER_.&amp;nbsp; The above D:\SAS\...\SASAppVA is location of SAS.Bat and other programs.&amp;nbsp; I am assuming D:\ is where SAS program (sas.exe) starts SAS and execute the EG code and result of the session is a creation of a folder in “Working” directory W:\SAS\SASWork\!&amp;nbsp; Am I correct or totally off course?&amp;nbsp;&lt;BR /&gt;Now, it looks like I have some orphaned sub folders in W:\SAS\SASWork\ folder&lt;BR /&gt;Q1- How do you know which folder is an Orphaned and which one is not?&lt;BR /&gt;Q2- How can I clean these folders, for example is it a good practice to delete any sub folders older than two days?&lt;BR /&gt;On a blog I found something about Cleanwork utility for Windows 64-bit is it something that normally administrators use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your assistants&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467891#M13328</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-06-05T23:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467903#M13329</link>
      <description>&lt;P&gt;CleanWork will check for &amp;amp; clean up orphaned SASWORK files/folders. It tends to be an administrative function, but can be run by any user who has the rights to delete SASWORK files/folders.&amp;nbsp; Generally, your typical user will not have the rights to delete SASWORK files/folders created by other users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is generally run as a super-user (root or group owner) as a scheduled overnight task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Why not give it a go?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467903#M13329</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2018-06-05T23:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467905#M13330</link>
      <description>&lt;P&gt;The clean work utility is documented here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=n0j43jculk2kasn1qh5h12f3kl3z.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=n0j43jculk2kasn1qh5h12f3kl3z.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467905#M13330</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-05T23:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467915#M13331</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13754"&gt;@AndrewHowell&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;for the info.&amp;nbsp; I am the SAS admin (well we are very new to SAS).&amp;nbsp; I will read the document and will give it a try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 00:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467915#M13331</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-06-06T00:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467971#M13332</link>
      <description>&lt;P&gt;Just to dig a little deeper into what the cleanwork utility does:&lt;/P&gt;
&lt;P&gt;When a SAS process creates its WORK library location, a hexadecimal representation of the process number is made part of the directory name. Therefore it is quite easy for the cleanwork utility to detect if a WORK directory is "orphaned" or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that this is what I see happening on UNIX systems, the toyboxes might work a little differently.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 06:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/467971#M13332</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-06T06:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468097#M13341</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;for the info, is there anyway or it is possible&amp;nbsp;when the folder + the hexadecimal number is created to associated with a user?&amp;nbsp; I also did some testing, opened EG, put some code and run the code.&amp;nbsp; Noticed a new folder was created and then I didn't log out, just killed the EG process and the folder was deleted.&amp;nbsp; I want to know in what situations where the folders are not automatically deleted!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 15:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468097#M13341</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-06-06T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468104#M13342</link>
      <description>&lt;P&gt;In most cases, the workspace server deals with the loss of its frontend in a graceful way. Even "hard" losses (like a network outage) will be handled by a timeout.&lt;/P&gt;
&lt;P&gt;Orphaned WORKs are usually the result of a crash (segfault or similar) or some kind of hard termination on the server (power outage, kill -9).&lt;/P&gt;
&lt;P&gt;On UNIX, a simple ls -ld of the directory will reveal the owner.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 15:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468104#M13342</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-06T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468142#M13343</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, I did run the cleanwork.exe, and it looks like it removed some of the directories but still got bunch of folders.&amp;nbsp; I tried to delete them manually and it basically can't because the or folder is open in another program.&amp;nbsp; Since at this moment I don't have any users logged in I am assuming these folders perhaps are somehow are folders that being used by SAS!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other question if you have time, I have a network area setup for users to save their EG (projects or programs) to their own group but can't globally map that network for them i.e. S:\mySASTeam.&amp;nbsp; Is there a config file that I can change so automatically point the users to it when they try to save their files with-in EG or SAS Studio like \\myNetwork\SASUsers\mySASTeam\Scripts...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468142#M13343</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-06-06T17:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468153#M13344</link>
      <description>&lt;P&gt;On a server, you will have several SAS processes running all the time, metadata server, OLAP server, pooled workspace servers, stored process servers, all having their own WORKs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The recently used path for storing code files is in one of the xml files in %appdata%\SAS\EnterpriseGuide\7.1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468153#M13344</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-06T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding SAS working directory and Orphaned folders</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468183#M13345</link>
      <description>&lt;P&gt;Found it, the file called SaveDlg but it will change each time a file get saved and it keeps the location of last saved file ;-(&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 20:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Understanding-SAS-working-directory-and-Orphaned-folders/m-p/468183#M13345</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2018-06-06T20:15:23Z</dc:date>
    </item>
  </channel>
</rss>

