filename ftpdir ftp ' ' list
user='username@ftp.server.com'
pass='topsecret'
host='our.proxy.server'
port=8080
cd='download/' PASSIVE debug;
data ftp_dir (drop=str: hh) ;
infile ftpdir dsd dlmstr=' ' MISSOVER;
informat strDate $8. strtime $7. bytes 8. name $50. ;
input strDate strtime bytes name ;
format Datetime datetime20. hh 2. date ddmmyy8.;
date=MDY(substr(strDate,1,2)*1,substr(strDate,4,2)*1,substr(strDate,7,2)*1);
if substr(strtime,6,2)='PM' then hh=substr(strtime,1,2)+12; else hh=substr(strtime,1,2)*1;
Datetime=DHMS( date
, hh
, substr(strtime,4,2),0);
run;
SAS takes this filename statement, but then the datastep end with a critical error:
ERROR: An exception has been encountered.
Please contact technical support and provide them with the following
traceback information:
The SAS task name is [DATASTEP]
ERROR: Read Access Violation DATASTEP
Exception occurred at (09264F14)
Task Traceback
Address Frame (DBGHELP API Version 4.0 rev 5)
0000000009264F14 000000000B82F120 sasdsx:tkvercn1+0x23ED4
I tried to take the passive parameter out, but same error. It just doesn't want to read the ftp directory. I am absolutley clueless.
... View more