Metadata Export Reference |
The Export Metadata Facility allows user-supplied add-in exporters to be called from inside SAS/Warehouse Administrator. A SAS Metadata API application can be registered and subsequently called from the SAS/Warehouse Administrator Export Format Selection window. The application can access the metadata through the API and export that metadata using the desired method.
The Add-In Exporter feature is designed much like the Add-In Tools Registry. The Add-In Exporter Registry is contained in a SAS data set. The default data set contains the entries that register the existing SAS supplied exporter tools. This data set resides in the SASHELP library and has a name of WAEXPRT. Any site-specific add-ins can be installed into SASHELP.WAEXPRT, or can be installed as _SASWA.WAEXPRT. If the _SASWA.WAEXPRT data set is found, its entries are used and not those of the SASHELP.WAEXPRT data set.
Usage |
The Add-In Exporter Registry has the following format:
The Add-In Exporter uses the SAS Metadata API and will pass the following three parameters to the entry specified in the registry when that exporter is selected:
Example Add-In Application |
Suppose you have written a Metadata API application that uses the API to access information about a Detail Table, and the application writes the pertinent metadata about that Detail Table and its process to an external file. You want to make this tool available from the Explorer in SAS/Warehouse Administrator, and you want to disable the SAS data set exporter that is provided for the Explorer. To do this, you add the necessary information to the SASHELP.WAEXPRT data set, as follows:
Mnemonic | Entry | Name | Active | Desc |
---|---|---|---|---|
USERTOOL | SASHELP.DW.EXPAEIS.SCL | SAS/EIS Metabase | 1 |
|
USERTOOL | SASHELP.DW.EXPASAS.SCL | SAS Datasets | 0 |
|
USERSETP | SASHELP.DW.EXPASASG.SCL | SAS Datasets | 1 |
|
USERTOOL | YOURLIB.YOURAPI.APP.FRAME | My Exporter | 1 |
|
After this modification is made to the SASHELP.WAEXPRT data set, your changes will be reflected in the Export Format Selection window. When you select an item in the Explorer and choose to Export Metadata, you will have the option of selecting SAS/EIS Metabase or My Exporter. The SAS Datasets option will no longer appear because you have set active=0.
If you were to choose My Explorer, SAS/Warehouse Administrator will invoke YOURLIB.YOURAPI.APP.FRAME with a CALL DISPLAY SCL statement. If the entry is not found, an error message will be displayed.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.