Date: Thu, 1 Mar 2012 17:22:20 -0500
Reply-To: Bolotin Yevgeniy <YBolotin@SCHOOLS.NYC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bolotin Yevgeniy <YBolotin@SCHOOLS.NYC.GOV>
Subject: Re: Using an AUTOEXEC on a Server
In-Reply-To: A<201203012210.q21JpdvY025625@waikiki.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"
if the autoexec gets ran for everybody, see if you can make your code
conditional by using the following two macro variables
%put &SYSHOSTNAME.; /* your computer name */
%put &SYSUSERID.; /* your windows login name, unix id, or whatever */
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Mary Rosenbloom
Sent: Thursday, March 01, 2012 5:10 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Using an AUTOEXEC on a Server
Hi all,
I would like to create an autoexec file for myself, and would like to
compile that code every time that my SAS session boots up. I have never
created an autoexec file before.
I found this usage note:
http://support.sas.com/kb/3/327.html#
which says this:
How do you use the Autoexec system option in the SAS System Version 8 on
the Windows Platform?
1) You can create an autoexec.sas file and place it in the sasroot
location (where your sas.exe is located). The default location is
\Program Files\SAS Institute\SAS\V8
2) You can add a line to your sasv8.cfg file (configuration file).
Note: It is very important to have this as the very first line in
the sasv8.cfg file.
Example:
-autoexec c:\mydata\autoexec.sas
3) If you have an icon on your desktop that invokes the SAS System,
right click, bring up properties, click on the shortcut tab and on
the target line add this to the very end of the line.
-autoexec c:\mydata\autoexec.sas
*Note: Make sure there is a space before the -autoexec on the target
line.
Now here's my question:
I use SAS on a server. So, everyone in my group uses the same
application. I'm assuming that I can choose one of the options above.
Am
I right that if I choose #1 or #2 above that EVERYONE in my work group
will get same autoexec file compiled at the start of their session? If
I
choose #3 will that work just for me?
Thanks so much for your help!
Cheers,
Mary O.