I'm having an issues creating the pg1 library as instructed in programming essentials, lesson 2 Accessing data.
i know where my files are, i've tried manipulating the path in each way possible (libname pg1 '/folders/myfolders'; As instructed) tried libname pg1 '/folders/myfolders/EPG1V2'; and libname pg1 'folders/myfolder/EPG1V2/data'. I even tried both Virtual machines and i always end up with a PG1 empty library.
I don't know what seems to be the problem.
i'm using Windows 10
SAS university edition
I need all the files to show under PG1 library. how can i get that done??
in SAS Studio, Click on the "Servers Files & Folders" in the Left Navigation Panel, then browse down to the folder of your course programs, double click on the *.sas file, that will open it in SAS Studio, then you submit it
Hope this helps,
Ahmed
Thanks for your reply Ahmed,
i do have the files in the server folders as you mentioned. the problem is i can't run any codes because the Library pg1 is empty.
I need the files to be in the pg1 library also, how can i do that?
thanks,
First - Check the setting on your SAS University Edition Virtual machine
Second - Within SAS Studio, Check the properties of your "My Folder"
Third - Ensure using correct paths in your libname statements, based on the information gathered from the above two pics
i.e.
Physically on my Personal desktop, I have placed all my SAS related files under
This PC\Documents\SASUniversityEdition\myfolders\.......
In SAS Studio that would translate to
/folders/myfolders/......
Therefore, as long as you have physically placed all your SAS related contents under C:\.....\myfolders\, you can reference it in SAS Studio as /folders/myfolders/<DirectoryName>/<file name>
Your pg1 library has to be defined as
LIBNAME pg1 "/folders/myfolders/EPG1V2/data";
I think, you'll need to open and modify This PC\Documents\SASUniversityEdition\myfolders\EPG1V2\createdata.sas
and make sure to use the same path as in the above libname statement, in order to create the sample data sets there.
Hope this clarify it for you.
Ahmed
Appreciate your help Ahmed,
After going thru the steps you kindly provided everything seems to be in line here.
The Virtual Machine's Path is set correctly, Folder property also. Even the library path is correctly defined but i'm still encountering errors.
Did you modify & run/submit the createdata.sas file?
Yes, as mentioned in the instructions.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.