You might have a repository
(or multiple repositories) that you want to make available to everyone
at your site. Instead of requiring each SAS Studio user to add these
repositories through the Preferences window,
you can create global repositories. Global repositories are automatically
available from the Tasks and Utilities and Snippets sections
when you first open SAS Studio.
To create a global
repository:
-
Create a repositories.xml
file that lists all the repositories you want to include.
The following repositories.xml
file combines the Simple Repository, Snippet Repository, Macro Repository,
and Saved Task Repository.
<?xml version="1.0" encoding="UTF-8"?>
<Repositories>
<Repository uri="http://my-repository/Repository/simple"
name="Simple Repository" />
<Repository uri="http://my-repository/Repository/snippets"
name="Snippet Repository" />
<Repository uri="http://my-repository/Repository/macros"
name="Macro Repository" />
<Repository uri="http://my-repository/Repository/tasks"
name="Saved Task Repository" />
</Repositories>
-
Save the repositories.xml
file to your global preferences directory. (You specified this directory
by using the
webdms.globalSettings
property
in the config.properties file.)
Now, global repositories
are available to the SAS Studio users at your site.
Note: Global repositories are not
listed in the Repositories section of the Preferences window. SAS
Studio users cannot change the contents of a global repository within
SAS Studio. To change a global repository, an administrator or developer
with Write permission must edit the repositories.xml file in the global
preferences directory.
To allow SAS Studio
users to add to their own repositories, set the webdms.allowRepositories
property
to true
in the config.properties file. Now,
users can add user-defined repositories to their SAS Studio session
by using the Preferences window.