Customizing the SAS/Warehouse Administrator Interface |
Add-in tools are SCL applications that extend the functionality of SAS/Warehouse Administrator. If any add-ins have been installed in your copy of SAS/Warehouse Administrator, you can display them as follows:
Open an Environment in the SAS/Warehouse Administrator Explorer.
Add-in tools are used to customize SAS/Warehouse Administrator for your site. You can write your own tools, or you can obtain the tools that have been developed by SAS. To obtain the add-in tools that have been developed by SAS, see Customizing SAS/Warehouse Administrator. Use this section as a reference when writing your own add-in tools.
Customizing the Add-In Tools Registry |
The Add-In Tools Registry is a SAS data set that contains references to any add-in tools that have been installed for a given copy of SAS/Warehouse Administrator. When you install add-in tools that have been developed by SAS, the registry is updated by the installation routine. If you develop your own add-in tool, you must update the Add-In Tools Registry so that your tool will be available in SAS/Warehouse Administrator.
The purpose of the tool registry is to provide greater flexibility in the entry that is called, as well as the parameters that the entry is called with. The registry data set is contained in the SASHELP library and has a name of WATOOLS. Any site-specific add-ins can be installed into the SASHELP.WATOOLS, or can be installed as _SASWA.WATOOLS. If the _SASWA.WATOOLS data set is found, its entries and not those of SASHELP.WATOOLS will be used.
The Add-In Tools Registry has the following format:
Example Add-In Tools Registry |
Here is an example that clarifies how tool registry parameters affect the availability of add-in tools available from the Add-Ins pull-down menu. Suppose that the SASHELP.WATOOLS data set contained the information in the following table.
MNEMONIC | ENTRY | NAME | ACTIVE | PARM-FMT | DESC |
---|---|---|---|---|---|
USERTOOL | _SASWA.DW.USERTOOL.SCL | User-Written Tools | 1 | 0 |
|
USERSETP | SASHELP.ADMIN.WATOOLS.FRAME | Administration Tools | 1 | 1 |
|
USERTOOL | SASHELP.DWEXPLT.IMPORT.FRAME | Import Data Model | 1 | 2 |
|
USERTOOL | SASHELP.DWEXPLT.EXPORT.FRAME | Export Data Model | 0 | 2 |
|
USERPRCS | _SASWA.DW.USERPRCS.SCL | User Written Tools | 1 | 0 |
|
When the File Tools Add-Ins pull-down menu option is selected from the Explorer, a query will be issued against the data set with an alias USERTOOL and Active=1. If more than one row is found to match the query, a secondary pop-up list is shown that contains the names of the registered add-in tools. For example,
Note that the Export Data Model add-in is not included because it is marked as Inactive. If only one row is found, then no pop-up list is displayed. When you select an add-in tool, a search is performed for the corresponding catalog entry. If the entry is not found, an error message is displayed stating that the add-in could not be found. If the entry is found, it is called by using a CALL DISPLAY SCL function.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.