Hi all,
At the moment we are running all our programs on our local machine (Rsubmit-ing them).
But due to increased workload we planning on scheduling some of them on the SAS server.
So the FTP script were using wont work, as the script is meant for windows... and i've no idea about unix..
Can anyone point out the changes i need to make to the below script to allow it to work on the unix server?
Thanks
Robbie
At the moment we are running all our programs on our local machine (Rsubmit-ing them).
But due to increased workload we planning on scheduling some of them on the SAS server.
So the FTP script were using wont work, as the script is meant for windows... and i've no idea about unix..
Can anyone point out the changes i need to make to the below script to allow it to work on the unix server?
Code:
%macro ftp_create_folder(
host = ,
user = ,
pass = ,
cur_dir = ,
new_dir = ,
script_file = temp.txt);
filename scr "&script_file";
data _NULL_;
file scr;
put "open &host";
put "&user";
put "&pass";
%if "&cur_dir" ne "" %then
%do;
put "cd &cur_dir";
%end;
put "mkdir &new_dir";
put "close";
put "quit";
run;
filename scr clear;
*option xsync = 1;
%sysexec ftp -s:"&script_file";
%sysexec del "&script_file";
*option xsync = 0;
%mend ftp_create_folder;
Thanks
Robbie