06-10-2015 06:25 PM
I´m doing a ftp, and I don´t know how control if there is an error becouse the transfer is not ok
- if the server is down
- is the directory is full
Can you help me? Here the code,
ftp '/' host='host2' DIR
infile indir(Fich.csv) truncover;
06-11-2015 02:50 AM
When using FILENAME FTP, a data step using those filerefs will give you ERROR messages in the log if the files are not accessible.
06-11-2015 03:28 AM
If you run a SAS program containing FTP filerefs in batch mode, and the FTP access fails, the final exit code of the SAS job will be 2, so you can use that in the scheduler to flag the job as failed.
When running interactively, you will notice the fail anyway.
What exactly is your problem that you need to solve?