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.
Talk to your SAS administrator, he/she will guide you if your request is approved.
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.
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.
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.
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.
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.