From: Shankar on
I think DIR and CD options are not compatible, so if you specify a
directory
you cannot use DIR;

Try the "list" command to get file attributes; I tested the following
on a Unix server:

filename dir ftp '' cd='/test' list user="USERNAME"
pass="password"
host="SERVER";

data _null_;
infile dir;
input;
put _INFILE_;
run;

The output contains timestamps and is similar to what you get using
"dir" or "ls -l" commands ;

Thanks,
Shankar