I am trying to download several files in one folder on the server to my
I know I can use ftp software. When the files have been created, than I
can use it. The problem is that the sas code is still running and the
files haven't been created. When the files has been created, I need to
compress it and then downlaod it.
I am using the following code to do that.
i = 0;
dsname = "server.a";
do until(i>120 or exist(dsname,"data"));
a = sleep(10);
x "compress a.sas7bdat";
proc download in=server out=laptop;
The problem is that the last downlaod procedure works well if the file is
not compressed. It doesn;t work if the file is compressed. Could I use
some procedure like proc ftp?