Hello,
I'm trying to make SAS to create a folder when running a code and that's just:
%let year = 2022;
options dlcreatedir;
libname out "mypath\&year";
and it works fine 🙂
but I also want SAS to create a subfolder in the
&year
-folder called 'data' and I thought I just could add:
%let year = 2022;
options dlcreatedir;
libname out "mypath\&year\DATA";
But it dosen't work that way. I was thinking maybe do the
options dlcreatedir;
libname out
twice. (like create the first folder, and then do the dlcreatedir once again, but I have a &year-macro variable so it dosen't make a good fit.
Anyone who can help me? 🙂