I am using SAS Studio. I successfully assigned my libname and I received the message:
Engine V 9,
Physical name:C:\EPG 194.
But when I run the procedure code below, I get error message. What could be going wrong please.
proc print data=pg1.np_summary(obs=20);
var Reg Type ParkName DayVisits TentCampers RVCampers;
run;
The data set you are trying to use does not exist (in that folder). So you can't use it, and an error message is created.
The second table in this output should list all of the data sets in the library:
proc contents data=pg1._all_ directory ; run;
It may be that you pointed the LIBNAME statement to an incorrect path. The first table will show the path to the library.
From where do you infer that the dataset should be there? Did you create it yourself through code, or is it part of the package of example data for the course?
Inspect the directory with Windows Explorer to check if a file np_summary.sas7bdat exists, and that its filename is all lowercase.
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.
Ready to level-up your skills? Choose your own adventure.