Date: Mon, 16 Feb 1998 22:27:57 -0500
Reply-To: Richard A DeVenezia <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Richard A DeVenezia <radevenz@IX.NETCOM.COM>
Subject: Re: The directory SAS was opened from using %sysget()?
This works in Windows NT. Your mileage may vary on other OS'.
SAS converts ospath to absolute path when fileref is assigned via the
You can also take a peek in SASHELP.VEXTFL to see the path name
corresponding to a fileref.
Nya Alison Murray wrote in message <34E936B4.7A4A4FB5@qldnet.com.au>...
>I'd like to use the sysget function to obtain the directory sas was
>started from in Windows.
>Does anyone know how to do this in open code. ie not in a data set and
>not in SCL.
>I know filename pipe works . I can get the name of the file that started
>up sas from the FOPTNAME function.
>But I haven't been able to find either the SAS or the WINDOWS
>environment variable that stores this info.
>Can anyone think of a way to use the DOS SET command to record the
>directory in an environment variable?
>PS I have put my eclectic collection of really useful really obscure
>SAS-L cuttings on my web page as in indexed HTML file. I tried to make
>it a Win help file, but it was too big.
>PC Analysis Services