LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 17 Sep 2007 17:11:18 -0400
Reply-To:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject:   Re: How to get SAROOT into a macro variable?
In-Reply-To:   <>
Content-Type:   text/plain; charset=us-ascii

> 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

Back to: Top of message | Previous page | Main SAS-L page