Date: Mon, 17 Sep 2007 17:28:40 -0400
Reply-To: Paul Walker <walker.627@OSU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul Walker <walker.627@OSU.EDU>
Subject: Re: How to get SAROOT into a macro variable?
On Mon, 17 Sep 2007 17:11:18 -0400, Fehd, Ronald J. (CDC/CCHIS/NCPHI)
>> From: Paul Walker
>> 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!);
>sasroot is an environment variable;
>therefore no need to assign it to a macro variable:
>%Put sasroot = %sysget(sasroot);
>Why do you want this path?
>I do not recommend that you write files to sasroot or any subfolder.
>Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
I am writing text files (not to SASROOT) and then using DOS commands to
submit them in order to achieve parallel processing. For my DOS commands,
I need to know where SAS is located.