A co-worker suggested the following.... Processing appears to work. The file is slightly larger after transfer - per the UNTAR process - 'garbage' added to end of file. PROC COMPARE indicates the datasets within the .TGZ align - are the same. %macro mv(file=);
filename indir ftp 'LOCATIONX' DIR host="SERVERX" user="USERX" pass="PASSX" prompt binary debug;
filename outdir ftp 'LOCATIONY' DIR host="SERVERY" user="USERY" pass="PASSY" prompt binary debug;
data _null_;
infile indir(&file) ;
input;
file outdir(&file);
put _infile_;
run;
%mend mv;
%mv(file=FILEA.tgz); I believe the approach is based on a SAS.com post. Your thoughts/opinions?
... View more