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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.