Learning SAS? Welcome to the exclusive online community for all SAS learners.

newbie stuck at square 1

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

newbie stuck at square 1

I have just attempted to create my first library using the line

libname mylib 'C:\Users\Owner\Documents';

It completes with 0 errors and a note: "mylib does not exist."

But in the libraries dropdown, I can see mylib does in fact exist!.

But any attempt to populate a dataset in mylib results in an error:

"mylib does not exist."


Accepted Solutions
Solution
‎08-25-2015 10:28 PM
New Contributor
Posts: 2

Re: newbie stuck at square 1

Thank you for your reply. After hours of uninstalling, reinstalling, deleting shared folders, adding shared folders, etc. I got it.

The instructions here What is a shared folder?  should be followed to the letter.

Key learning: you MUST access myfolders via this nonexistent path:  /folders/myfolders.

So this works

     libname xyz "/folders/myfolders";


Running these all generate the same error:   "Note: Library XYZ does not exist":

     libname xyz "folders\myfolders";

     libname xyz 'folders/myfolders'; 

     libname xyz "myfolders";           

     libname xyz "folders/myfolders";

View solution in original post


All Replies
Super User
Posts: 11,343

Re: newbie stuck at square 1

Posted in reply to brittlowry

Read the instructions. The virtual machine that UE runs in does not see any part of your drive except the bits where the VM is installed and subordinate. So your library has to go in that limited path. ALSO, it uses Unix syntax. which is also case sensitive. UppErcaSe letters matter.

Solution
‎08-25-2015 10:28 PM
New Contributor
Posts: 2

Re: newbie stuck at square 1

Thank you for your reply. After hours of uninstalling, reinstalling, deleting shared folders, adding shared folders, etc. I got it.

The instructions here What is a shared folder?  should be followed to the letter.

Key learning: you MUST access myfolders via this nonexistent path:  /folders/myfolders.

So this works

     libname xyz "/folders/myfolders";


Running these all generate the same error:   "Note: Library XYZ does not exist":

     libname xyz "folders\myfolders";

     libname xyz 'folders/myfolders'; 

     libname xyz "myfolders";           

     libname xyz "folders/myfolders";

Community Manager
Posts: 583

Re: newbie stuck at square 1

Posted in reply to brittlowry

Hi Britt, I'm sorry you had a rough start, but glad you're on your way now! I'll call attention to the link you shared. If this has been challenging for you, other users probably share your experience. Thank you for using the Analytics U Community! I look forward to other posts from you in here.

-
Bev Brown
Visit me on LinkedIn.
Twitter too: @BevBrown
Thank you for using SAS.jpg
Super User
Super User
Posts: 7,039

Re: newbie stuck at square 1

Posted in reply to brittlowry

If you don't start the path from the root node ('/') then you are using what is called a "relative" path.  Since the SAS process starts with the current working directory set to a path that you cannot write to you should always use an absolute path.

http://www.linuxnix.com/2012/07/abslute-path-vs-relative-path-in-linuxunix.html

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 620 views
  • 0 likes
  • 4 in conversation