BookmarkSubscribeRSS Feed
chelly
Calcite | Level 5

We are running MXG36.36 with SAS9.4 on Windows 10 x64 bit. (Testing phase - not a live one yet)

When I try to run a proc content command I keep getting Library xxxxxx Does not exist.

Physically the file is present and I have also assigned them in my autoexec file.

 

When I execute

proc contents data=detail.typetcp; ----> this is a SQL VIEW

run;

ERROR: Library D31JAN19 does not exist. ----> I get almost 90 errors with different dates starting from Dec 2018

where as when I run the following

proc contents data=D31JAN19._all_ nods;

run;

I get the output

 

Only this Procedure Content is causing trouble, all other proc's are running fine.

 

Background : We also use SAS 9.2 on Windows 7 32bit and the same code works fine.

 

Thanks for you help.

3 REPLIES 3
ballardw
Super User

Where is the LIBNAME statement that assigns your library named D31JAN19.

Or is D31JAN19 supposed to be a data set in the DETAIL library? If so the syntax would use the library name with the data set:

proc contents data=detail.D31JAN19;
run;

If you looking to run contents on a library the library has to be defined first and the only library I see that may be defined other than the WORK and SAS supplied SASHELP and SASUSER is DETAIL.

If you want all of the data sets in the DETAIL library the syntax would be

 

proc contents data=detail._all_
run;
chelly
Calcite | Level 5

LIBANAME statement is coded in my autoexec file

 

LIBNAME GDG         'd:\SASDATA\GDG';
LIBNAME EMPTY     'd:\SASDATA\EMPTY';
LIBNAME HISTORY     'd:\SASDATA\HISTORY';
LIBNAME D01JAN19    'd:\SASDATA\GDG\D01JAN19';
LIBNAME D02JAN19    'd:\SASDATA\GDG\D02JAN19';

etc...

 

When I run the following

proc sql;

describe view DETAIL.TYPETCPA;

 

I get

 

SQL view is defined as follows

select *

from D01FEB19.TYPETCPA

union all corresponding

select *

from D01JAN19.TYPETCPA

union all corresponding

select *

from D01MAR19.TYPETCPA

union all corresponding

select *

from D02FEB19.TYPETCPA

union all corresponding

select *

from D02JAN19.TYPETCPA

union all corresponding

select *

;

;

;

;

;

etc...…..

 

ballardw
Super User

Since the issue is with the D31JAN19 it would be appropriate to actually show the libname statement for that library.

 

Clear the log.

Run your autoexec manually.

Paste the log into a code box opened using the forum's {I} icon.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1528 views
  • 0 likes
  • 2 in conversation