BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
astha8882000
Obsidian | Level 7

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.

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
Kurt_Bremser
Super User

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.

ballardw
Super User

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.

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3110 views
  • 0 likes
  • 3 in conversation