FILENAME returns a 0
if the operation is successful, and a nonzero number if it was not
successful.
If you use the FTP access
method to communicate with a remote system, SAS might return the following
error message:
ERROR: Physical file does not exist.
This
error is likely to occur when the fully qualified data set name is
specified within single quotation marks. For example:
FILENAME fileref FTP 'system.dataset.name' USER='username'
PASS='password' HOST='ip_address';
By default, SAS appends
the profile prefix to the beginning of the data set name. To prevent
the profile prefix from being appended, enclose the data set name
with both double and single quotation marks:
FILENAME fileref FTP "'external_file'" USER='username'
PASS='password' HOST='ip_address';