Date: Mon, 17 Sep 2007 16:13:33 -0500
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: How to get SAROOT into a macro variable?
In-Reply-To: <200709172059.l8HKv3jF031179@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
Try this....
%let SasLoc = %sysGet(SasRoot);
Returns D:\Program Files\SAS\SAS 9.1
on my computer.
On 9/17/07, Paul Walker <walker.627@osu.edu> wrote:
> I am trying to identify the location of SAS.Exe on a PC on-the-fly during
> a SAS program. I think it is stored in the so-called SASROOT! location,
> but I am not sure how to retrieve SASROOT! into a macro variable. Does
> anyone know how to do this? I am hoping there is something like:
>
> %let SasLoc = %GetPath(SasRoot!);
>
|