Date: Tue, 16 Dec 2003 15:01:33 -0500
Reply-To: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject: Re: path to executing file
"Evert Carton" <email@example.com> wrote in message
> Given the following;
> Directory structure:
> I'm currently in /path/to
> I want to execute a SAS/BASE-program, myprogram.sas, in programs, and I do
> (assuming sas is in my PATH)
> sas sas/programs/myprogram.sas
> Now, is there any way, in SAS, for the SAS-program to find out where in
> the filesystem it does live, or how it is being referred to (in this case
> as "sas/programs/myprogram.sas") ?
> I know there is a macro variable, SASPROCESSNAME, which would in this case
> "Program ./sas/programs/myprogram.sas"
> But I would like the absolute path to the file ...
> Hope I make myself clear. The above explanation does of course reflect a
> UNIX-setup, but, ultimately, I'm looking for a Win2K-solution.
> Just so you know ... ;-)
I am unaware of SASPROCESSNAME macro variable, but
you can use filename and pathname to obtain absolute path given relative
filename currdir ".";
Richard A. DeVenezia