10-02-2014 01:57 PM
I basically want to delete a folder 'test_fldr' on ftp server, and can not because folder is not empty.
tried rcmd='rmd /Test/test_fldr' (folder not empty)
tried rcmd='rmd -r /Test/test_fldr' (invalid file name, apparently -r is not recognized)
so decided to delete files in the folder first, as you see in following code
rcmd='dele *.*' debug does not work.
filename del ftp 'x' /* it doesn't work with empty ' ', so decided with x */
/* connect */
/* change directory */
rcmd='dele *.*' debug /* struck here: extrct from log "NOTE: <<< 550 *.*: The filename, directory name, or volume label syntax is incorrect. "
any help would be appreciated.
10-03-2014 05:41 AM
This is not a SAS issue. The ftp server is allowing some commands and there will be restrictions as of security on those files.
Try to find those and after that you could go on with the attempt using the SAS interfacing. (rcmd usage)
10-03-2014 05:55 AM
Concur with Jaap, also to add there is probably a very good reason why deleting things via ftp is not allowed! Even local file deletion should be undertaken with extreme caution, and backups.