Date: Tue, 17 Feb 2004 20:47:02 +0100
Reply-To: Lex Jansen <spam@LEXJANSEN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Lex Jansen <spam@LEXJANSEN.COM>
Subject: Re: user options
I have something that maybe can be compared with your situation (but then
different domains instead of different users).
We have the exact same SAS environment on different sites across the world.
Part of that environment is a central AUTOEXEC.SAS that everybody uses.
However there are some settings that are different across sites.
Instead of having a different 'central' AUTOEXEC.SAS' for every site, I made
a local AUTOEXEC.SAS next to the 'central' AUTOEXEC.SAS.
A site is defined by the DOMAIN (we are working on Windows).
So, the 'central' AUTOEXEC.SAS contains something like this:
(macro variable &_standrd defines the location of our standard SAS
environment on the server)
%LET qqdomain=%SYSFUNC(SYSGET(USERDOMAIN));
%IF
%SYSFUNC(FILEEXIST(&_standrd\Operational\Config\autoexec_&qqdomain..SAS))
%THEN %DO;
%INCLUDE "&_standrd\Operational\Config\autoexec_&qqdomain..SAS";
%END;
%ELSE %DO;
%PUT NOTE: No local AUTOEXEC file: AUTOEXEC_&qqdomain..SAS;
%PUT;
%END;
If you would replace the USERDOMAIN with USERNAME you could implement a
different AUTOEXEC for every user.
Like I said this is all Windows, but I hope it gives you an idea.
HTH,
Lex Jansen
Please reply to the newsgroup. In order to fight spam and virusses replies
to my email address listed in this post will be deleted without reading. If
you want to reply to me personally, please replace "spam" with "admin" in
the e-mail address.
An alternative means of contact is the form at:
http://www.lexjansen.com/feedback
"SAS User" <sas@SDAC.HARVARD.EDU> wrote in message
news:Pine.GSO.4.10.10402171136390.19618-100000@davinci.harvard.edu...
> SAS-Lers,
>
> We have a few dozen users on a UNIX system. most users have
> autoexec files in each of their program directories for that
> specific project. Is there a way to change the defaults for
> just one user? ie, several people would like to turn on the
> mergenoby warning, but we don't want to make it an entire
> system default, and the users don't want to have to change
> all of their autoexec files. Anything in between?
>
> Thanks.
>
> -Casey