I once wrote a macro to prove if a path was "writeable". It would try writing to the path using FOPEN(), FWRITE() etcetera functions and test return codes ~but I can't find that macro now!
Anyway, that was before SAS9 introduced the DCREATE function.
This snip from online doc indicates a simpler approach is possible.
new-directory=DCREATE(directory-name<,parent-directory>)
Arguments
new-directory
contains the complete pathname of the new directory, or contains an empty string if the directory cannot be created.
full details at
http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002332693.htm.
If "new-directory" is not blank, then you can create a directory, and that folder is writeable. (Just make sure the "new-directory" does not exist before executing that function
😉 )
PeterC