Execute OS-command

The code below executes a OS-command in a nice and easy fashion. It also returns the returncode (rc) for the execution of the command in the OS-environment.

options noxwait;

data _null_;
 rc = system("copy c:\test\*.sas d:\test\");
 put rc=;
run;

 

Leave a Reply

Your email address will not be published. Required fields are marked *