SAS Programming

DATA Step, Macro, Functions and more
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
Diamond | Level 26
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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1923 views
  • 0 likes
  • 3 in conversation
Cookie Preferences