DATA Step, Macro, Functions and more

FTP of a zipped file

Reply
N/A
Posts: 0

FTP of a zipped file

We have successfully used the FTP engine as in the program below to send zipped files to an external FTP site. However, with files
larger than about 200MB we have sometimes found that the final file is corrupted and unusable. Does anyone have experience with this or
suggestions of what might be going wrong?
Note: We can send the files just fine using the Windows FTP client.

filename ofile ftp
"TEST.ZIP"
binary
lrecl=32767
debug
host="XXX.XXX.XXX.XXX"
user="USER" pass="&pass";
filename ifile "d:\staging\TEST.ZIP" recfm=f lrecl=32767;

data _null_;
infile ifile _infile_=var IGNOREDOSEOF;
input ;
file ofile;
put var;
run;
SAS Super FREQ
Posts: 8,865

Re: FTP of a zipped file

Posted in reply to deleted_user
Hi:
This Tech Support note illustrates slightly different syntax than your program:
http://support.sas.com/kb/22/770.html

And these notes do not seem relevant to your issue.
http://support.sas.com/kb/9/533.html
http://support.sas.com/kb/18/908.html
http://support.sas.com/kb/12/912.html

It seems that Tech Support might be your best resource for resolution of this question.

cynthia
N/A
Posts: 0

Re: FTP of a zipped file

Posted in reply to Cynthia_sas
Thank you. The technique in note 22770 seems to resolve the problem (there is an error in the code in that note, you nnow.)
SAS Employee
Posts: 224

Re: FTP of a zipped file

Posted in reply to deleted_user
Ted, Thanks for mentioning the problem with usage note 22770. It is being updated and will be republished.
Ask a Question
Discussion stats
  • 3 replies
  • 194 views
  • 0 likes
  • 3 in conversation