Is there anyone who has experience with converting from FTP to SFTP? I need make the following code to work by using SFTP. data scr; Length x $100.; x='OPEN ORA_WSMOD'; output; /* FTP SERVER*/ x='xxxxx'; output; /* USERNAME*/ x='xxxxxx'; output;/* PASSWORD*/ x='cd ftp_out'; output; /* FTP-FOLDER*/ x='lcd c:\temp'; output; /* OUTPUT FOLDER*/ x='PUT filename1.txt'; output; /* The filename */ x='PUT filename2.txt'; output; /* Another filename*/ x='quit'; output; run; data _null_; set WORK.SCR end=EFIEOD; %let _EFIERR_ = 0; %let _EFIREC_ = 0; file 'c:\temp\scr.txt' delimiter='09'x DSD DROPOVER lrecl=32767; format x $100. ; if _n_ = 1 then do; end; do; EFIOUT + 1; put x $ ; ; end; if _ERROR_ then call symput('_EFIERR_',1); If EFIEOD then call symput('_EFIREC_',EFIOUT); run; option XWAIT XSYNC; X 'ftp -s:c:\temp\scr.txt';
... View more