Can you please share:
Hi:
In our Programming 1 class, with a LIBNAME statement like this, we would expect to see a %LET statement before the LIBNAME statement. Something like this (several possibilities):
%let path=s:\workshop\EPG1V2\data;
or
%let path=/home/u12345678/EPG1V2/data;
or
%let path=%sysfunc(pathname(WORK)); /* this only works on SAS Enterprise Guide */
then your LIBNAME:
libname pg1 "&path";
But, as @Mark2010 pointed out, without seeing ALL of your code, including your %LET statement it is hard to comment. If you are running Programming 1 in your own version of Enterprise Guide, we automatically create the &PATH helper variable for you. The fact that &path is not working either implies that you are not using Enterprise Guide or you did not get to the place in class yet where we have you create &PATH helper variable.
Can you also clarify where you're working in the class -- by providing the lesson number and the activity, demo or practice that you're doing?
Thanks, in advance,
Cynthia
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 16. 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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: