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
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 */
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Thursday, March 01, 2012 5:10 PM
Subject: Using an AUTOEXEC on a Server
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:
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.
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.
*Note: Make sure there is a space before the -autoexec on the target
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.
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
choose #3 will that work just for me?
Thanks so much for your help!