DATA Step, Macro, Functions and more

referencing lib name trouble

Reply
Contributor
Posts: 27

referencing lib name trouble

[ Edited ]

hello I'm fairly new and am trying to designate a libname but keep getting the error:

 

The path /Users/sana/Desktop/Spring II/LMS/SAS data is not in the list of accessible paths when SAS is in
the lockdown state.
ERROR: Error in the LIBNAME statement.
 
 

the path is copied from the file information and I can see the folder "SAS data" and the dataset I want within it in the side panel under "folder shortcuts" but don't know how to access it. 

 

here is the code i am using thanks for any help!

 

LIBNAME LM '/Users/sana/Desktop/Spring II/LMS/SAS data/'; 
proc print LM.hw4q2; 
run;
PROC Star
Posts: 2,373

Re: referencing lib name trouble

Posted in reply to iressa131
Trusted Advisor
Posts: 1,837

Re: referencing lib name trouble

[ Edited ]
Posted in reply to iressa131

Can you rename your subfolders and replace all spaces (' ') into underscore ('_') ?

 

If possible do it and check does it fix the problem.

 

Are you using SAS University Edition ?

Super User
Posts: 10,280

Re: referencing lib name trouble

Posted in reply to iressa131

/Users points to a Mac, so I guess you are using SAS UE on that Mac. The ONLY folder you have access to in SAS UE is the shared folder you defined when setting up the virtual machine. You CANNOT access any host-system folders outside this shared folder.

Place your data in the Mac folder you defined as the shared folder, and use /folders/myfolder inside the UE VM.

All this supposes you set up your VM correctly according to the documentation, of course.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Posts: 23,776

Re: referencing lib name trouble

Posted in reply to KurtBremser

The ONLY folder you have access to in SAS UE is the shared folder you defined when setting up the virtual machine. You CANNOT access any host-system folders outside this shared folder.

 

You can set up multiple shared folders on SAS UE to anywhere on your desktop, including a DropBox or OneDrive folder.

Then you access it as:

 

'/folders/myshortcuts/NAME'

where NAME is the name you provided in the set up in Oracle VirtualBox. 

Super User
Super User
Posts: 8,127

Re: referencing lib name trouble

Posted in reply to iressa131

If you can see the path in the GUI file explorer tool in SAS/Studio then right click on it and select PROPERTIES and you will see that path that SAS can use to reference it.

Ask a Question
Discussion stats
  • 5 replies
  • 142 views
  • 0 likes
  • 6 in conversation