BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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;
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
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
deleted_user
Not applicable
Thank you. The technique in note 22770 seems to resolve the problem (there is an error in the code in that note, you nnow.)
reneeharper
SAS Employee
Ted, Thanks for mentioning the problem with usage note 22770. It is being updated and will be republished.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1226 views
  • 0 likes
  • 3 in conversation