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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 933 views
  • 0 likes
  • 3 in conversation