Here is an easy way to get a list of Libraries from SAS Metadata, including any extended attributes they may have.  This comes in handy for checking what extended attributes are in place on your Visual Analytics LASR Libraries, for example your Autoload settings!


This example provides data step code that will query the SAS Metadata and return a list of registered Libraries and their extended attributes. The code as-is will create a data step view in the work library, so each time it is accessed it will dynamically query the SAS Metadata.

How to use it

The data step code below assumes that the connection to your Metadata Server has already been configured using the following System Options:

If you are running this code via an IOM client (e.g. Enterprise Guide, DI Studio, etc.) then these options will already be set to the user you have logged into SAS with.  If you are running this code from Base SAS you will need to issue an OPTIONS statement to set them.
Because access to the SAS Metadata requires security authorisation, the list of Libraries returned will be dependent on what the user specified in the METAUSER/METAPASS options can access.


Data Step View of Tables in Metadata ExampleData Step View of Libraries