%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)
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.