SAS Tip: SYSEXEC COPY to copy files (Daily tip for 2024-Apr-16)


Use %SYSEXEC COPY in conjunction with macros and the data step in order to copy selected files (including non-SAS files) from one directory to another.


Thanks to Louise Hadden for this tip. Read more details in this paper from WUSS 2017: Get Smart Eliminate Kaos and Stay in Control Creating a Complex Directory Structure with the DLCREATEDIR Statement SAS Macro Language and Control Tables.

READ this complete tip   Visit a random SAS tip

Start a topic
About these Tips
A "SAS tip" is a basic unit of information exchange between SAS users. The tips on this board come from sasCommunity.org, from SAS user conferences, from SAS blogs, and from freelance contributions from SAS users like you. We hope that you're able to always learn something new here!


» How you can contribute


Tip-o-meter: 80 tips