Create a Directory Using 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. **

you can use the function dcreate to create a directory in sas sas: created don't use "~" in the path, can cause problems

x mkdir path;
new-directory=DCREATE(dir-name<,parent-dir>);

too stupid, cannot use dcreate(...); must assigned the return results to another variable. This applies to other function/calls in sas ... x mkdir ...; in much more convenient to create directory in sas dcreate does not recognize "~" while the unix/linux command way can recognize it!!!