Learning SAS? Welcome to the exclusive online community for all SAS learners.

ERROR: Library does not exist

Accepted Solution Solved
Reply
New Contributor msa
New Contributor
Posts: 4
Accepted Solution

ERROR: Library does not exist

I am struggling to get SAS Studio (UE) to let me run anything because it refuses to recognize my library. Sometimes it kind of recognizes there is a sas7bdat file in there but nonetheless won't work out of the library I'm trying to establish nor run proc print. I've checked that the folder sharing is enabled. I've tried different libnames. The library does seem to be created in the side panel. I've looked across all the answers through Google and this community and cannot seem to figure it out. Thanks in advance for the help!

 

CODE:

libname terrier '/folders/myfolder/nscshcn';

proc contents data=terrier._all_;
title 'What datasets are in this location?';
run;

 

LOG:

OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
proc contents data=terrier._all_;
title 'What datasets are in this location?';
run;
 
WARNING: Library TERRIER does not exist.
ERROR: Library TERRIER does not exist.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
NOTE: The SAS System stopped processing this step because of errors.

Accepted Solutions
Solution
‎12-23-2017 08:40 AM
SAS Super FREQ
Posts: 9,252

Re: ERROR: Library does not exist

Hi, Please double check your folder definitions. Typically, with SAS University Edition, the shared folder location should be defined as
/folders/myfolders (with an S on the end of myfolders).

Double check the folder you created and make sure it has an S at the end and then double check the shared folder location you defined in your virtual machine software and if necessary, redo that, if you did it wrong the first time.

Hope this points you in the right direction.

cynthia

View solution in original post


All Replies
Solution
‎12-23-2017 08:40 AM
SAS Super FREQ
Posts: 9,252

Re: ERROR: Library does not exist

Hi, Please double check your folder definitions. Typically, with SAS University Edition, the shared folder location should be defined as
/folders/myfolders (with an S on the end of myfolders).

Double check the folder you created and make sure it has an S at the end and then double check the shared folder location you defined in your virtual machine software and if necessary, redo that, if you did it wrong the first time.

Hope this points you in the right direction.

cynthia
New Contributor msa
New Contributor
Posts: 4

Re: ERROR: Library does not exist

Posted in reply to Cynthia_sas
I thought I'd added an S! Clearly not. Thank you.
Super User
Posts: 22,818

Re: ERROR: Library does not exist

[ Edited ]

Go to your shared folder under Server Files and Folders.

Right click it and select properties

Copy the path in location as your library reference.

 

 Why does your log not show the libname statement and the log from it? Please make sure to paste your actual log. You can edit out important details. 

 

Screen Shot 2017-12-22 at 10.32.42 PM.png


msa wrote:

I am struggling to get SAS Studio (UE) to let me run anything because it refuses to recognize my library. Sometimes it kind of recognizes there is a sas7bdat file in there but nonetheless won't work out of the library I'm trying to establish nor run proc print. I've checked that the folder sharing is enabled. I've tried different libnames. The library does seem to be created in the side panel. I've looked across all the answers through Google and this community and cannot seem to figure it out. Thanks in advance for the help!

 

CODE:

libname terrier '/folders/myfolder/nscshcn';

proc contents data=terrier._all_;
title 'What datasets are in this location?';
run;

 

LOG:

OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
proc contents data=terrier._all_;
title 'What datasets are in this location?';
run;
 
WARNING: Library TERRIER does not exist.
ERROR: Library TERRIER does not exist.
NOTE: Statements not processed because of errors noted above.
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
NOTE: The SAS System stopped processing this step because of errors.

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 824 views
  • 0 likes
  • 3 in conversation