DATA Step, Macro, Functions and more

How to access libraries on SASApp server using BASE SAS

Reply
New Contributor
Posts: 3

How to access libraries on SASApp server using BASE SAS

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.

Super User
Posts: 5,424

Re: How to access libraries on SASApp server using BASE SAS

Posted in reply to banksider

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

Data never sleeps
Super Contributor
Posts: 438

Re: How to access libraries on SASApp server using BASE SAS

[ Edited ]
Posted in reply to banksider

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.

New Contributor
Posts: 3

Re: How to access libraries on SASApp server using BASE SAS

Posted in reply to jklaverstijn

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.

Super Contributor
Posts: 438

Re: How to access libraries on SASApp server using BASE SAS

Posted in reply to banksider

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.

Ask a Question
Discussion stats
  • 4 replies
  • 288 views
  • 1 like
  • 3 in conversation