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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1899 views
  • 1 like
  • 3 in conversation