Date: Fri, 8 Aug 2003 16:49:49 -0400
Reply-To: ben <benpub7@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: ben <benpub7@YAHOO.COM>
Subject: Re: help on fileref()/fexist()....
On Fri, 8 Aug 2003 10:23:24 -0400, Charles Patridge
<charles_s_patridge@PRODIGY.NET> wrote:
>Ben,
>
>You need to show us your code and a little about your environment - such as
>local environment characteristics and your remote environment.
>
>Plus, how are you trying to access these remote files with fexist function?
>
>A little shown code could/would be extremely helpful to assist you.
>
>HTH,
>Charles Patridge
here is code, thanks.
filename dds2 ftp "right.one"
cd="" user='...' pass='....'
host='www.some.com' recfm=v prompt;
****exist;
filename dds1 ftp "wrong.one"
cd="" user='...' pass='....'
host='www.some.com' recfm=v prompt;
****not exist;
223 data x;
224 x1=fileref('dds2');
225 x1_1=fileexist('dds2');
226 x2=fileref('dds3');
227 x2_1=fileexist('dds3');
228 *x1=fileref(dds);
229 put x1= x2= x1_1= x2_1=;
230 run;
x1=0 x2=0 x1_1=0 x2_1=0
NOTE: The data set WORK.X has 1 observations and 4 variables.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.01 seconds