I don't know the direct solution but you can reference two different libnames pointing at different locations..for example.
/*Location where your file are residing now*/
Libname origloc "D:\Files\Projects\Project1";
/*Destination where you want to send the file to*/
Libname destLoc "D:\Files\Projects\Project2";
data destLoc.data1;
set origloc.data1;
run;
You can also lookup Proc copy or Proc cport procedures.
what file types do you want to copy? If it's tables, the hints from sk1 work perfectly (attention: the data...set...run ignores any index the source table has, so target is w/o it, with v8 auditing etc. as well).
For other file types you could consider input/output using 'infile'; depending on the structure of the file have a closer look at RECFM, BLKSIZE, and LRECL options in the online help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.