- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 03-24-2008 04:48 PM
(1922 views)
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;
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;
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. The technique in note 22770 seems to resolve the problem (there is an error in the code in that note, you nnow.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Ted, Thanks for mentioning the problem with usage note 22770. It is being updated and will be republished.