BookmarkSubscribeRSS Feed
Calcite | Level 5 nws
Calcite | Level 5



I am having a little difficulty with the libref. I created a libref with:


libname sampLib "PATH";


Then I run:

libname _all_ list;


And samplib is listed.

But then when I run: 


proc contents data = SAMPLIB._all_ nods;


I see "Library samplib does not exist" error.


I am not sure if I can create that samplib library or how to fix this error I get. I'd appreciate any guidance!

Rhodochrosite | Level 12

Does the "PATH" specified in sampLib exist?

Is there a NOTE in the log that says "NOTE: Library sampLib does not exist." before the proc contents error?


"options dlcreatedir;" will create a folder that does not exist (only one level above the specified folder).

Jade | Level 19

Have a look at the log! Always! There will be a note after the libname statement indicating success or failure of the statement. Without seeing the look with the actual error message, it is hardly possible to fix the issue. Just one point: if the sas session runs on a server, it is hardly possible to access local drives. If sas runs on linux, unix the path starts with slash, not a drive letter.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 in conversation