![]() |
![]() |
SAS/Warehouse Administrator Metadata Types |
Category: | Object Types--Explorer |
Parent | |
Overview | |
Properties | |
Property Dependencies | |
Using WHLDETL | |
Adding and Linking Detail Tables | |
Deleting and Unlinking Detail Tables |
Parent |
Overview |
WHLDETL models the metadata for detail logical tables in SAS/Warehouse Administrator. A detail logical table is a multipurpose table that you can use as a detail table, a grouping element for detail tables, or a view on multiple that is related detail tables. If you use it as a grouping element, a detail logical table defines columns that are shared by all of its detail tables.
To add a detail logical table with the SAS/Warehouse Administrator Explorer:
Find a subject that does not already have a detail logical table (each subject can only have one).
Select the detail logical table with the right mouse button.
Properties |
The following table lists all of the properties for WHLDETL and indicates how you can use each property with metadata API methods.
In the table, you can pass properties with a Yes in the Add column to the _ADD_METADATA_ method. Use this method to add a new object.
You can pass properties with a Yes in the Update column to the _UPDATE_METADATA_ method. Use this method to update properties of an existing object.
* Req indicates that the property is required; you must provide a value for this property when you use a given method. * Default indicates that the system will provide a default value for that property if you do not provide one.
Properties with a Yes in the Read Method Expand Parm column are valid with the expand parameter of the _GET_METADATA_ method. This method enables you to get detailed metadata about a property and its associated objects through a single method call.
Note: A CREATING JOB property
is required if the INPUT SOURCES property is also specified.
You must define a CREATING JOB property in order to add INPUT SOURCES to a table. If a table does not have a CREATING JOB property, then you must specify one when you add an input source to the table.
Using WHLDETL |
Add | Update | Delete |
Yes | Yes | Yes |
WHLDETL is an independent type, like all subtypes of WHTABLE. To understand how all subtypes of WHTABLE relate to other types, see the models in Relationships Among Metadata Types.
The table that is created as part of the _ADD_METADATA_ method is added as a member to only the first group listed in the GROUP property list. Once you add a table, the GROUP property cannot be changed using the metadata API.
SAS/Warehouse Administrator supports the linking of detail tables (tables of type WHDETAIL) between multiple subjects in a warehouse. Currently, however, the metadata API does not support the concept of linking detail tables to multiple subjects.
You can use the _DELETE_METADATA_ method to unlink a table from a list of subjects or delete the table entirely. The determination of the type of delete to perform is based on the presence and value of the GROUP property in the l_meta list that is passed to the _DELETE_METADATA_ method.
If the GROUP property is not passed in the l_meta list or an empty list is passed as the value of the GROUP property, then the table will be deleted entirely. If the GROUP property is passed as a nonempty list in the l_meta list, the table will be unlinked from all groups that are referenced in the GROUP property list. If an invalid GROUP identifier is passed in this list, an error is returned to the application and the table is not unlinked from any of the referenced groups.
![]() |
![]() |
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.