Run Unix/Linux Commands in SAS

Posted on May 17, 2015 in Computer Science

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

SAS can run Unix/Linux commands everywhere using

x command;

For exampel, to create a directory named "abc" in your home directory.

x mkdir ~/abc;

It can even run user-defined shell scripts, which is great. even though you can use unix/linux command in sas, it seems that it is not robust and it is often hard to test whether the command has run successfully. It is suggested that you avoid using unix/linux commands in sas.