%let folder_name = 'foldeCBA'; %let path = '/home/u47498320/SAS Projects/folder1'; data null; new=dcreate(&folder_name, &path); run;
I am trying to run this code in SAS Viya, it has no errors/ warnings but did not manage to create a new folder named foldeCBA. This works fine in SAS Studio. I suspect its due to how the data are stored/ location in SAS Viya. Any ideas on this?
msg=ERROR: Physical file does not exist, /home/u47498320/SAS Projects/folder1
My SAS version is V.03.05M0P11112019 and I got this message. I was wondering how could I check and go into the correct file path in SAS Viya so that I could create the folder?
Thanks @gwootton. Just curious, do you have any ideas on SAS commands that could get the current directory? I would like to try using SAS commands instead of logging into the server
I am still unable to resolve finding the correct folder path. However, I have decided to go with Macro Core library and it works fine for my problem.
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; %mv_createfolder(path=/Users/ch/My Folder/TestFolder)
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.