If you are after a simple way to list all your SAS Web Report Studio Reports, then this post is for you!
This example provides data step code that will query the SAS Metadata and return a list of Web Report Studio Reports. 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 objects returned will be dependent on what the user specified in the METAUSER/METAPASS options can access.