BookmarkSubscribeRSS Feed
mgrzyb
Quartz | Level 8

Hi,

I have NEVER  had this problem in my LIFE!    What is wrong??   

 

My code for a perm SAS dataset won't read. It keeps coming back saying there is no library.  I have used this code all my life! 

 

 

MY CODE

 

options linesize=132 pagesize=60 nocenter date; *center;
                        options pageno=1;
LIBNAME maosi 'C:\sas\a_study\maosim';
libname library2 'c:\sas\a_study\maosim';
options fmtsearch=(library2);

 

proc contents data=maosi.datatable; run;

 

 

 

It keeps putting this out in the log:

ERROR: Library MAOSI does not exist.
133 run;

3 REPLIES 3
PaigeMiller
Diamond | Level 26

@mgrzyb wrote:

Hi,

I have NEVER  had this problem in my LIFE!    What is wrong??   

 

My code for a perm SAS dataset won't read. It keeps coming back saying there is no library.  I have used this code all my life! 

 

 

MY CODE

 

options linesize=132 pagesize=60 nocenter date; *center;
                        options pageno=1;
LIBNAME maosi 'C:\sas\a_study\maosim';
libname library2 'c:\sas\a_study\maosim';
options fmtsearch=(library2);

 

proc contents data=maosi.datatable; run;

 

 

 

It keeps putting this out in the log:

ERROR: Library MAOSI does not exist.
133 run;


The folder c:\sas\a_study\maosim does not exist. Go to your WIndows Explorer and figure out what happened, did you spell the name wrong, or did the folder get moved/renamed/deleted, or whatever.

--
Paige Miller
mgrzyb
Quartz | Level 8

Oh  my gosh, I made a simple mistake in where the files came from.  Once I relocated the files, it worked. Thank you. 

ballardw
Super User

It might help to show us the LOG starting from the LIBNAME MAOSI statement.

Copy the log from that statement through the Proc contents with the error and any messages. Paste into a code box opened with the forum's {I} or "running man" icon.

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

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