BookmarkSubscribeRSS Feed
imanojkumar1
Quartz | Level 8

Hi

 

I have created a libname XXXX and have saved a table Event_History_Main in it, using:

 

libname XXXX meta library="XXXX" metaout=data;

data XXXX.Event_History_Main;
	set work.Event_History_Main;
run;

 

but when I try to run this code

 

data Event_History;
	set XXXX.Event_History_MAIN;
run;

 

I get error:

 

 ERROR: Libname XXXX is not assigned.

 

How to resolve it?

6 REPLIES 6
imanojkumar1
Quartz | Level 8

It was a tying mistake on this forum but in SAS EG, I checked everything is correct.

 

I am still getting the same ERROR.

 

I don't know what i missed before the code:

 

data Event_History;
	set XXXX.Event_History_Main;
run;

May be some reference to Library or something... i don't know. I tried this also but failed...

 

/* Retrieve Saved Data from LibName - "XXXX" */
libname XXXX yy;

/* Retrieve Saved Data from LibName - "XXXX" */
data Event_History;
    set XXXX.Event_History_Main;
run;
monikka1991
Obsidian | Level 7

I ahve tried to save it in my directory and it works !

 

libname xxxx "location you want to save"; 

 

But I am not sure about the metadata server location..

Kurt_Bremser
Super User

When you use libname meta, you are dependent on the attributes the library has in the SAS metadata definition. If it points to a place in the filesystem where your userID lacks the required permissions, you have problems.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1265 views
  • 0 likes
  • 3 in conversation