I have a SAS data set (.sas7bdat) in a shared drive location. How do I read that file? If I use general libname command then I get the error so I'm assuming libname should be used to create librefs for sas grid specific locations only.
libname trial "S:\shared drive path";
data check1;
set trial.[dataset name that I want to read];
run;
NOTE: Library TRIAL does not exist.
ERROR: File TRIAL.[dataset name that I want to read].DATA does not exist.
It means that the location is not available on your SAS server. It might be mounted there under another name (especially if your grid uses UNIX), or not mounted at all.
It means that the location is not available on your SAS server. It might be mounted there under another name (especially if your grid uses UNIX), or not mounted at all.
I would expect to see something in log indicating whether the library was successfully assigned.
From my log for example:
NOTE: Libref BRFSS was successfully assigned as follows: Engine: V9 Physical Name: <Path>\BRFSS
or a not that it wasn't successful. If not likely the issue would be either the path or permissions.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.