<?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: Ever seen SASUSER defined as aggregate library? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536197#M147324</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have never seen it for SASUSER and cannot even think of a case where you would want to point SASUSER to multiple directories.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SASHELP on Windows definitely points to multiple directories.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;802   %put %sysfunc(pathname(sashelp));
( 'C:\Program Files\SASHome\SASFoundation\9.4\nls\en\SASCFG' 'C:\Program Files\SASHome\SASFoundation\9.4\core\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\aacomp\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\af\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\assist\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\cas\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\cmp\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\connect\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\eis\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\ets\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\graph\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\iml\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\mlearning\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\or\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\qc\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\spdsclient\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\stat\sashelp' )
&lt;/PRE&gt;
&lt;P&gt;On Unix usually not as many.&lt;/P&gt;
&lt;PRE&gt;1    %put %sysfunc(pathname(sashelp));
( '/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/nls/en/sascfg'
'/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/nls/en/sascfg'
'/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/sashelp' )&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Feb 2019 20:49:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-02-16T20:49:55Z</dc:date>
    <item>
      <title>Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536182#M147322</link>
      <description>&lt;P&gt;You can define a libref or a fileref to point to multiple physical directories.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myfile ('path1' 'path2' 'path3');
libname mylib ('path1' 'path2' 'path3');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was reviewing a program where the code went to a lot of work to handle the possibility that the SASUSER libref was pointing to multiple physical directories.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Has anyone ever seen a situation where SAS will actually define SASUSER to point to more than one physical directory?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 18:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536182#M147322</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-02-16T18:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536189#M147323</link>
      <description>I can't check right now, but I believe that's true by default in the config file. SASHELP points to several directories as well.</description>
      <pubDate>Sat, 16 Feb 2019 19:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536189#M147323</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-16T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536197#M147324</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I have never seen it for SASUSER and cannot even think of a case where you would want to point SASUSER to multiple directories.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SASHELP on Windows definitely points to multiple directories.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;802   %put %sysfunc(pathname(sashelp));
( 'C:\Program Files\SASHome\SASFoundation\9.4\nls\en\SASCFG' 'C:\Program Files\SASHome\SASFoundation\9.4\core\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\aacomp\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\af\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\assist\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\cas\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\cmp\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\connect\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\eis\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\ets\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\graph\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\iml\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\mlearning\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\or\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\qc\sashelp' 'C:\Program Files\SASHome\SASFoundation\9.4\spdsclient\sashelp' 'C:\Program
Files\SASHome\SASFoundation\9.4\stat\sashelp' )
&lt;/PRE&gt;
&lt;P&gt;On Unix usually not as many.&lt;/P&gt;
&lt;PRE&gt;1    %put %sysfunc(pathname(sashelp));
( '/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/nls/en/sascfg'
'/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/nls/en/sascfg'
'/Volumes/app/sas/prod/sas9.4/SASFoundation/9.4/sashelp' )&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Feb 2019 20:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536197#M147324</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-02-16T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536198#M147325</link>
      <description>&lt;P&gt;What would be the use of an aggregate SASUSER library? The idea of the SASUSER is to store user-specific data and configurations. For example the SAS Windowing Environment stores its PROFILE catalog here. With an aggregate library only the first directory in the sequence would ever get written to when using SASUSER.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 22:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536198#M147325</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-16T22:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536233#M147333</link>
      <description>&lt;P&gt;Imagine a directory with a formats.sas7bcat in it. Appending that to the user's own sasuser.v94 by using a concatenated SASUSER might be used to distribute formats from a central location, but there are much better ways to achieve this.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 06:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536233#M147333</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-17T06:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ever seen SASUSER defined as aggregate library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536565#M147458</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; I suspect that the code was copied from a situation where multiple directories were possible for the libref they wanted to search.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway here is what I came up with as a compromise just in case anyone actually did try to point SASUSER to multiple directories.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*----------------------------------------------------------------------------;
* Check for xxxx.txt file in SASUSER directory. ;
*----------------------------------------------------------------------------;
%let _filename=;
data _null_;
  set sashelp.vlibnam;
  by level;
  where libname='SASUSER';
  if first.level;
  if fileexist(catx('/',path,'xxxx.txt')) then do;
    call symputx('_filename',catx('/',path,'xxxx.txt'));
    stop;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Ever-seen-SASUSER-defined-as-aggregate-library/m-p/536565#M147458</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-02-18T20:02:25Z</dc:date>
    </item>
  </channel>
</rss>

