<?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: How to change the WORK library folder location based on user in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451093#M113663</link>
    <description>&lt;P&gt;ehm yeah careful with that, it would save &lt;STRONG&gt;permanently&lt;/STRONG&gt; any dataset created at run time which may not be what was wanted, depends on what your boss really intend to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 13:16:09 GMT</pubDate>
    <dc:creator>Oligolas</dc:creator>
    <dc:date>2018-04-04T13:16:09Z</dc:date>
    <item>
      <title>How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450985#M113629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to change the WORK library folder location based on user. I'm wondering if anyone can help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We installed SAS on a server with roughly 3-5 people accessing the software. My boss wants her Work location to be in C: drive but the rest of the users in H: drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I opened the SASV9.CFG file but I can't seem to find a way to set the WORK location based on user. The best I could do is to use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-WORK "H:\WORK\!USERNAME"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all of the data sets are stored in the H: drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450985#M113629</guid>
      <dc:creator>kisumsam</dc:creator>
      <dc:date>2018-04-04T09:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450990#M113631</link>
      <description>&lt;P&gt;Why?&amp;nbsp; Work location is a termporary area only for the current session.&amp;nbsp; If you need to store outputs/datasets etc. then setup an area and set libnames directly to the store area.&amp;nbsp; Work is not the place for storing anything other than temporary elements.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 10:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450990#M113631</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-04T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450992#M113632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Look&amp;nbsp; for the sasv9.cfg file &lt;FONT color="#ff0000"&gt;in your language&lt;/FONT&gt; under &lt;FONT color="#ff0000"&gt;Program Files\SASHome\SASFoundation\9.4\nls&lt;/FONT&gt; Directory&lt;/LI&gt;&lt;LI&gt;Create a copy and edit it&lt;/LI&gt;&lt;LI&gt;Adapt the line starting with '-WORK' with the path you want as for i.e. "-WORK "!TEMP"&lt;/LI&gt;&lt;LI&gt;Create a shortcut to SAS and &lt;FONT color="#ff0000"&gt;adapt&lt;/FONT&gt; the path to load your edited cfg file:&lt;/LI&gt;&lt;LI&gt;"&lt;FONT color="#ff0000"&gt;C&lt;/FONT&gt;:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -CONFIG "&lt;FONT color="#ff0000"&gt;C:\TEMP\sasv9_mod.cfg&lt;/FONT&gt;"&lt;/LI&gt;&lt;LI&gt;Save the shortcut and start SAS&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It will significantly improve the working speed in case your admin set the default work path to a network drive and you remap to your local SSD&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 10:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450992#M113632</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2018-04-04T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450998#M113634</link>
      <description>"My boss wants" is a good enough reason.</description>
      <pubDate>Wed, 04 Apr 2018 10:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/450998#M113634</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-04-04T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451000#M113635</link>
      <description>&lt;P&gt;That depends, are they the best person to decide that, is it inline with company policy, is that secure etc.&lt;/P&gt;
&lt;P&gt;"My boss wants me to chuck all these financial papers out of the window" - ok, good enough reason &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 10:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451000#M113635</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-04T10:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451031#M113641</link>
      <description>&lt;P&gt;Thanks Oligolas. So your suggestion is to improve the working speed? I'm hoping to save the working data sets in different folders based on the server user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User ABC101 --&amp;gt; C:\Work&lt;/P&gt;&lt;P&gt;Other Users --&amp;gt; H:\Work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think that's possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 11:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451031#M113641</guid>
      <dc:creator>kisumsam</dc:creator>
      <dc:date>2018-04-04T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451042#M113646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;afaik you can not change the work path&amp;nbsp;at run time,&amp;nbsp;I would rather work with the&amp;nbsp;SAS libnames&amp;nbsp;and educate the users to use a defined common library.&lt;/P&gt;&lt;P&gt;But you could use a Batch file for loading different shortcuts with&amp;nbsp;different cfg files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451042#M113646</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2018-04-04T12:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451059#M113656</link>
      <description>&lt;P&gt;If I have written proof that he asked me to do that and I advised him not to, yes.&lt;/P&gt;
&lt;P&gt;Anyway, my answer was tongue in cheek.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451059#M113656</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-04-04T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451063#M113657</link>
      <description>&lt;P&gt;Using option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options user='c:\temp\';&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451063#M113657</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-04-04T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451093#M113663</link>
      <description>&lt;P&gt;ehm yeah careful with that, it would save &lt;STRONG&gt;permanently&lt;/STRONG&gt; any dataset created at run time which may not be what was wanted, depends on what your boss really intend to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451093#M113663</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2018-04-04T13:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451108#M113670</link>
      <description>&lt;P&gt;The work-location can be set in any cfg-file with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-WORK "path"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS will create a sub-folder in the given directory with the name of the user and some more chars to make it unique. Afaik the last use of "-WORK" wins. So you use one "-WORK"-statement in sasv9_usermods.cfg with the default path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With -config statement (in sasv9_usermods.cfg) another cfg-file can be loaded, so you need a cfg-file for each user: empty for those using the default path and with another "-WORK"-statement for your boss. Concatenating the file name in the config-statement didn't work, so we added a SET-statement in appservercontext_env_usermods.bat, like:&lt;/P&gt;
&lt;PRE&gt;SET USER_WORK_CFG=PATH_TO_CFG\%username%.cfg&lt;/PRE&gt;
&lt;P&gt;and used&lt;/P&gt;
&lt;PRE&gt;-config "!USER_WORK_CFG"&lt;/PRE&gt;
&lt;P&gt;in sasv9_usermods.cfg in SASApp directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would not allow any user to have work on C-drive of a sas-server without having a very limiting quota management, especially if the config is also stored on C. If the work-datasets fill the available space on C, system-stability could be risked.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451108#M113670</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-04-04T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451806#M113971</link>
      <description>&lt;P&gt;Thanks all! I actually found a solution that I haven't come across on this forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Work library path can be set in the SAS properties:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 373px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19672i2B2B5B9969E78EB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like this is a good option since we don't have to mess around any cfg or system file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/451806#M113971</guid>
      <dc:creator>kisumsam</dc:creator>
      <dc:date>2018-04-06T09:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the WORK library folder location based on user</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/452490#M114203</link>
      <description>&lt;P&gt;Wow that's&amp;nbsp;great thanks for sharing! Apparently any other property can be customized this way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 13:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-WORK-library-folder-location-based-on-user/m-p/452490#M114203</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2018-04-09T13:55:49Z</dc:date>
    </item>
  </channel>
</rss>

