I have uploaded a file vis SASDrive on Viya4.
I can see the file from inside SAS Studio.
However, I can note make a file reference to it. I get the same lockdown error as above
78 filename ind "/folders/myfolders/CS_Data/exported_Data.xpt";
ERROR: The path /folders/myfolders/CS_Data/exported_Data.xpt is not in the list of accessible paths when SAS is in the lockdown
state.
ERROR: Error in the FILENAME statement.
If you are using SASDRIVE then make sure to use the appropriate VIYA commands for making those file accessible. You cannot access those files as if they were files on a real disk drive.
/folders/myfolders is the path you would have used on the now discontinued University Edition to access the shared folder. I seriously doubt that it ever worked on Viya.
Viya uses a special storage service that is propagated through the cluster, so that all nodes can see all files (which are no longer visible as such to the underlying operating system). You have to use proper CAS/Viya code to access files in the cloud storage.
I have 4 SAS 9.4 datasets, which I have transferred to Viya on Azure using SASDrive. I also for backup purposes have the 4 datasets in XPT format.
I want to create a SAS SPRE libname from within SAS Studio, which points to the location, where the 4 files resides
However, I keep getting the lockdown error.
Therefore I am not able to run the code below:
cas casauto;
proc casutil;
load data=mylibname.cs_accepts;
quit;
78 filename ind "/folders/myfolders/CS_Data/exported_Data.xpt";
ERROR: The path /folders/myfolders/CS_Data/exported_Data.xpt is not in the list of accessible paths when SAS is in the lockdown
state.
This error sounds very much like the environment has server lockdown enabled and restricted the paths you can access via your SAS session.
https://documentation.sas.com/doc/en/bicdc/9.4/biasag/n23000intelplatform00srvradm.htm
You will need to store your files under a path that's defined for such access.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.