/ Published in: SAS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
data _null_; length ret $3 new_dir $50; new_dir = "folder_name"; ret = dcreate(new_dir,"&out"); if ret="" and not fileexist(cats("&out",new_dir)) then put "ERROR: New directory for output was not created."; run;