Date: Mon, 16 Feb 2009 01:37:25 -0800
Reply-To: John Hendrickx <John2.Hendrickx@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: John Hendrickx <John2.Hendrickx@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Getting info about the Present Working directory
Content-Type: text/plain; charset=ISO-8859-1
On 14 feb, 00:27, google.bhec...@xoxy.net wrote:
> This version based on Chang's code places the path in a macrovariable:
>
> filename P PIPE 'cd';
> data _null_;
> infile P;
> input;
> call symput('PWD', _infile_);
> run;
> %put _all_
Even shorter:
filename dummy '.';
%let pwd=%sysfunc(pathname(dummy));
Should work for unix as well.
Good luck,
John Hendrickx
Statistician
Clinquest Europe BV, Oss - The Netherlands
www.clinquest.com
|