- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am new to SAS and using the free e-learning program. I'm on the first step of creating a library and the code is correct: "libname pg1 "C:\Program Files\SASUniversityEdition\myfolders\data";
I keep getting this message and the library is not created,
NOTE: Library PG1 does not exist. 74
I'm running SAS through Virtual Box. Might that have something to do with the inability to create the library? How can I create libraries using Virtual Box, if that is the problem
Thanks in advance for any help!!
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Another possible problem is that when you download the zip file for the Programming 1 class, we tell University Edition students to put the main folder (and all the sub-folders) under their /myfolders location with a main folder name of EPG194.
So the correct LIBNAME statement, if you followed those instructions would be:
libname pg1 "/folders/myfolders/EPG194/data";
When I look at your code, I do not see the EPG194 folder in the path. One way to find the actual path in your SAS University Edition installation is to look under the My Folders location for the EPG194 folder, then look for the data folder under that location. Right click on the data folder and select Properties. You should see the University Edition path to your data folder in the Properties window.
If you do not have an EPG194 folder then you need to go back to the Course Overview instructions and follow them again.
Hope this helps,
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try to change the code to:
libname pg1 '/folders/myfolders/data';
VirtualBox is unable to see your entire C drive, as it is connected only to C:\Program Files\SASUniversityEdition\myfolders\, so instead you have to point it to the myfolders directory using /folders/myfolders/.
Did that fix the problem?
-Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Brian,
Thanks for your speedy reply!
I ran the code you provided. Here are the notes...
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Whoops...I see that a single quote and double quote were used, so I corrected that. I still get the same "does not exist" note.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @mcgannmary.
That libname statement should be correct. Can you verify that you have created your shared folder correctly?
You can find information about creating a shared folder here:
How do I create a shared folder in VirtualBox?
Hope that helps!
thanks,
Jennifer
Catch the SAS Global Forum keynotes, announcements, and tech content!
sasglobalforum.com | #SASGF
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jennifer,
My folders create correctly, but still has this issue.
Thanks,
Quanshuo
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Another possible problem is that when you download the zip file for the Programming 1 class, we tell University Edition students to put the main folder (and all the sub-folders) under their /myfolders location with a main folder name of EPG194.
So the correct LIBNAME statement, if you followed those instructions would be:
libname pg1 "/folders/myfolders/EPG194/data";
When I look at your code, I do not see the EPG194 folder in the path. One way to find the actual path in your SAS University Edition installation is to look under the My Folders location for the EPG194 folder, then look for the data folder under that location. Right click on the data folder and select Properties. You should see the University Edition path to your data folder in the Properties window.
If you do not have an EPG194 folder then you need to go back to the Course Overview instructions and follow them again.
Hope this helps,
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Another possible problem is that when you download the zip file for the Programming 1 class, we tell University Edition students to put the main folder (and all the sub-folders) under their /myfolders location with a main folder name of EPG194.
So the correct LIBNAME statement, if you followed those instructions would be:
libname pg1 "/folders/myfolders/EPG194/data";
When I look at your code, I do not see the EPG194 folder in the path. One way to find the actual path in your SAS University Edition installation is to look under the My Folders location for the EPG194 folder, then look for the data folder under that location. Right click on the data folder and select Properties. You should see the University Edition path to your data folder in the Properties window.
If you do not have an EPG194 folder then you need to go back to the Course Overview instructions and follow them again.
Hope this helps,
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Brian's solution works.
Thank you,
Quanshuo
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have the same issue when use virtual machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@Quanshuo and @mcgannmary,
When you access the SAS® University Edition: Information Center (http://localhost:10080), are there any notifications in the lower left corner?
I just removed "myfolders" as a shared folder for the virtual machine. After doing that, there is a notification in the Information Center that alerts me of this:
Now, if I go to SAS Studio and run the libname statement code:
libname pg1 '/folders/myfolders/data';
then I also get "NOTE: Library PG1 does not exist." in the log.
Once I add myfolders as a shared folder for the virtual machine again, then the code works again. So like @jennifert suggested, I would verify that the shared folder was created correctly.
Please let us know if you are still having problems.
-Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I do have the folder and with no notifications.
Thank you for your quick replies.
Quanshuo
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The virtual box runs in a Linux environment which is case sensitive.
Your code:
libname pg1 '/folders/myfolders/data";
Your picture appears to use "My Folders" , both capital letters and a space. So the spelling is incorrect.
I would suggest verifying that you create and use a /myfolders shared folder definition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
But I will try that once I finish my HW.
Thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the info. Libraries are not automatically re-created when SAS Studio initializes again unless there are libname statements in your Autoexec file.
To view your autoexec file, click on the "More application options" icon in the upper-right corner:
which opens the Autoexec file:
Do you have any code in the autoexec file?
-Brian