Yeah i'm guessing that's why. No worries, glad you everything is working!
I was having the same problem using the SAS University Edition. When the course directed me to set up the PG1 library it did not require me to specify the data subfolder. Once I went back in and added that it worked like a charm. Thank you for this!
im unable to create a library
it is showing
Hello, I have a related question. I am using SAS studio. I logged out and when I began a new session, I recreated the library using my saved libname program. When I run the program, it does create the PG 1 library. However the PG1 library folder is empty - no tables. I am directing the libname statement to my EPG1V2/Data folder within SAS studio where I do see many tables. Why is the library empty? Here is my syntax:
Hi:
This is NOT the path we recommend:
For SAS University Edition, we recommend that you make your EPG1V2 folder directly under the My Folders top node, in which case, the correct path would be:
libname pg1 "/folders/myfolders/EPG1V2/data";
However, the way to find the correct path is to start with the Server Files and Folders pane (not the Libraries pane). Then, in Server Files and Folders, navigate to the EPG1V2 folder and expand it. Then navigate to the data subfolder. Do you see files inside? Some of the files will have .xlsx, .csv and .dat file extensions. Other files will have .sas7bdat extensions. If you see all of these file types in the data subfolder, then right-click on the data subfolder and choose Properties.
The Properties popup window will have a location field. THAT will be the correct location for you to use in your LIBNAME statement.
When you ran the data setup programs for the class, did you see the PROC CONTENTS results at the end of the successful completion of the programs? If so, the top of the PROC CONTENTS also showed you the correct path to use. You can use your path with "coursefiles" in the name, if that is the actual folder structure you have and the folder structure you used when you created the class files.
If you do NOT see any sas7bdat file extensions in your data folder, that implies that something went wrong with your data creation program. Go back to the course setup instructions and re-run the programs again. Be sure you use the correct folder name for the location of your data for class.
You will ONLY see SAS datasets in the Libraries window AFTER you are successful at running the data creation program in class. Did you watch the videos that were referenced in my earlier posting?
Cynthia
Hello, I'm in lesson 3 level 1 practice: exploring data with procedures
/* list first 20 rows */
proc print data=pg1.np_summary (obs=20);
var Reg Type Park Name DayVistis Tent Campers RVCampers;
run;
when i run this statement
can someone help me
Hi:
It's not a good idea to add your new post to an older post like this. Many folks won't search through the 2 pages of previous posts to find the new one. It's much better to make a new post and refer to this one if you need to.
The most common reason for getting the LIBREF not assigned message are these:
1) You did not submit a LIBNAME statement for the PG1 library
2) You DID submit a LIBNAME statement, but you pointed to a folder that did not exist or you misspelled one of the folder names
3) You had some issue with making the data for the class (as shown in earlier posts in this thread) and didn't use the right path (as shown in the previous posting where the user inserted a folder named coursefiles into the class folder path.
If you are using SAS University Edition in a Virtual Machine, when you open SAS Studio, the top node in the Server Files and Folders pane will say My Folders and this folder will point to your shared folder location as defined in the Virtual Machine host software. Assuming next, that you followed ALL of the instructions for making the class data, then your correct LIBNAME statement would be something like:
libname PG1 '/folders/myfolders/EPG1V2/data';
Or, if you are using SAS OnDemand for Academics and you start SAS Studio from a browser by going to the OnDemand server and logging into your dashboard, then your top node on the Server Files and Folders pane will say Files (Home). Assuming next, that you followed ALL the instructions for making the class data, then your LIBNAME statement would be something like:
libname PG1 '/home/<userID>/EPG1V2/data';
So if your userID was jjones0 then the statement would be:
libname PG1 '/home/jjones0/EPG1V2/data';
Or if your userID was u1234567 then the statement would be:
libname PG1 '/home/u1234567/EPG1V2/data';
There are other ways of using SAS, such as SAS Enterprise Guide or SAS on a local install on your C: drive. However, without more concrete information about how you are using SAS, the above 2 LIBNAME examples are the ones that we get the most questions about.
Cynthia
Hello,
At first glance it seems you are missing the semicolon at the end of your libname statement.
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!
Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.
Find more tutorials on the SAS Users YouTube channel.