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-2024.png

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.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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