So, as I understand the problem, you submitted a properly coded LIBNAME statement and are attempting to view the tables in that library using one of the typical SAS GUIs, such as the Explorer window in the SAS windowing environment (like PC SAS), the Servers Library tree in Enterprise Guide, or the Libraries pane in SAS Studio. Here are a few reasons the tables you expect to see may not appear in the display: 1. I'm using a SAS/ACCESS Interface LIBNAME statement to access database tables. You may not have specified the correct SCHEMA, or the credentials you used to authenticate to the database don't have SELECT permissions for the tables you want to access. For example, student submits this code:
libname db oracle path="oracle.mydomain.net:1521/oracle1"
user="student" pw="Metadata0";
And sees these tables in the library (example from Enterprise Guide 7.15):
So, student2 wants access to those tables too, and submits this code:
libname db oracle path="oracle.mydomain.net:1521/oracle1"
user="student2" pw="Metadata0";
But student2 sees these tables in the library instead of those seen by student.
This is because the ORACLE libname engine connects to your personal schema when you don't specify SCHEMA=. So student2 now specifies the student schema like this:
libname db oracle path="oracle.mydomain.net:1521/oracle1"
schema=student user="student2" pw="Metadata0";
But sees only the CARS table:
Because student2 has only been granted SELECT permissions on the CARS table in the student schema, student2 won't be able to see any of the other tables in that schema. 2. I'm using SAS libraries located in folders I know I have access to. Consider this code:
libname one "C:\temp\one"; data one.fish; set sashelp.fish; run;
The LOG looks good:
25 data one.fish;
26 set sashelp.fish;
27 run;
NOTE: There were 159 observations read from the data set SASHELP.FISH.
NOTE: The data set ONE.FISH has 159 observations and 7 variables.
If I am running PC SAS, I see the table in my one library right away:
But if I'm working in Enterprise Guide (7.x or earlier, and early versions of SAS Studio, too) I don't see it!
These earlier clients required you to refresh the libraries before you could see newly created tables:
And violá!
You can always check the contents of a library programmatically to verify you are seeing everything in the GUI window. You might be surprised at what you find there 😉 My WORK library looks like this:
But I get a whole lot more information when I use PROC CONTENTS:
proc contents data=work._all_ nods;
run;
And the results show a lot of other things in that library besides my tables:
#
Name
Member Type
File Size
Last Modified
1
REGSTRY
ITEMSTOR
13KB
06/17/2022 12:36:31
2
SASGOPT
CATALOG
5KB
06/17/2022 12:36:40
3
SASMAC3
CATALOG
13KB
06/17/2022 14:23:09
4
SASMACR
CATALOG
89KB
06/17/2022 12:37:31
5
TEST
DATA
192KB
06/17/2022 12:36:40
6
_PRODSAVAIL
DATA
128KB
06/17/2022 12:36:32
Many thanks to all who pitched in to provide clarification and pieces of the answer, especially @PaigeMiller, @novinosrin, and @Jim_Ogilvie I've done my best to consolidate, expand, and organize everything here for future SAS searchers.
... View more