Hi All,
So I use standard FTP connections for accessing to remote files:
Smth. like this:
filename indir ftp '' user='username' pass='xxxx' host='yyyy' DIR;
data _null_;
infile indir;
input;
%put _infile_;
run;
Sometimes connections fails and notes throws to the log:
NOTE: <<< 421 Service not available, closing control connection.
So can I somehow indicate if such situations happens(if connections fails)?
I tried to compare global macro vars which creates if such situation occur with gl. macro vars which creates if file loaded successfully, but looks like they are the same.
May be the only one way is to get target file size, if it 0 then attempt is not successful, but must be some more clever and simple way to resolve this problem.
So how can I know that ftp connections were finished successfully?
Thanks!