BookmarkSubscribeRSS Feed
banksider
Fluorite | Level 6

I have my SAS Metadata Server username and password.

In Enterprise Guide, I can access the libraries on this server.

Now, how do I get access to these same libraries on this server in BASE SAS?

I don't want to use Enterprise Guide.

 

I am using SAS 9.3 on a work computer.

 

Many thanks.

4 REPLIES 4
LinusH
Tourmaline | Level 20

Talk to your SAS administrator, he/she will guide you if your request is approved.

Data never sleeps
jklaverstijn
Rhodochrosite | Level 12

Your library is most likely preassigned from the metadata and the libname statement code is not obvious. But you can get it by using the meta engine:

 

options metaserver=... metaport=... metauser=... metapass=... metarepository=...; 

libname mylib meta library="<whatever the library is called in metadata>" ;

 

Make sure you have all the META options in place. I advise to code the password as at least a {sas002} hash. See proc pwencode.

 

As a bonus, you will find the actual libname statement syntax in the log if you add the LIBDEBUG option. The library will be allocated if you match the metadata security so you can go right ahead and use it.

 

Hope this helps,

- Jan.

banksider
Fluorite | Level 6

Hi jklaverstijn

 

Thanks so much for this. I've filled all the meta options except METAREPOSITORY. I don't know how to identify that, still searching. Any suggestions would be great!

 

Thanks again.

jklaverstijn
Rhodochrosite | Level 12

The repository is rarely different from Foundation:

 


options metarepository='Foundation';

When in doubt you should consult your SAS administrator or, if available to you, have a look in SAS Management Console.

 

Reg's Jan.

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
  • 4 replies
  • 1575 views
  • 1 like
  • 3 in conversation