Date: Fri, 20 Jun 2003 14:38:25 -0400
Reply-To: Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject: Re: FileExists for PDS style filename in Windows ?
I would probably try using the PATHNAME function to get the physical name of
the directory represented by the fileref, then concatenate the "member name"
part (info.txt) to the end of that (with an appropriate delimiter in between
if necessary) as the argument to FILEEXIST.
From: Richard A. DeVenezia [mailto:radevenz@IX.NETCOM.COM]
Sent: Friday, June 20, 2003 10:20 AM
Subject: FileExists for PDS style filename in Windows ?
In windows suppose I have a file
containing some data such as
1 2 3
pds-style filenaming is [ <fileref> ( <filename> ) ], where filename should
exist in the folder fileref points to I can use pds-style naming to read
filename myData 'c:\temp\myData\';
input a b c;
But the FileExist() and FileRef() functions do not like the pds-style naming
%put Exists: %sysfunc (FileExist (myData(info.txt)));
%put Exists: %sysfunc (FileRef (myData(info.txt)));
Any suggestions on how to check existence of file when given pds-style
Richard A. DeVenezia, http://www.devenezia.com