![]() |
![]() |
SAS/Warehouse Administrator Metadata Types |
Category: | Object Types--Explorer |
Parent | |
Overview | |
Properties | |
Property Dependencies | |
Using WHDATTBL |
Parent |
Overview |
WHDATTBL models the metadata for data tables in SAS/Warehouse Administrator. A data table is a multipurpose table. You can use it as a detail data store, a summary data store, a look-up table included as part of a join, or a table that holds information that does not fit anywhere else.
A data table can be a SAS table or view or a DBMS table or view. To add a data table with the SAS/Warehouse Administrator Explorer:
Properties |
The following table lists all of the properties for WHDATTBL 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.
New properties for WHDATTBL are as follows:
specifies an SCL list of general identifying information about the source code that is used to view (open) this data table. This property will return a copy of the source code with the &loc reference replaced with the appropriate location information. See the Note below.
specifies an SCL list of general identifying information about the source code that is used to view (open) this data table. This property will return a copy of the source code with the &loc reference unresolved. See the Note below.
Note: The VIEW CODE and RESOLVED VIEW CODE properties
are very closely related.
When you write the source code to view (open) a data table, you can insert &loc into the text as a placeholder for the data table's location information--information such as libref.catalog.entry.type, for example. The VIEW CODE property will return a copy of the source code with the &loc reference unresolved. The RESOLVED VIEW CODE property will return a copy of the source code with the &loc reference replaced with the appropriate location information.
The RESOLVED VIEW CODE property is provided as a convenience and removes the burden from the application of parsing the returned code and replacing the &loc reference. If the source code does not contain the &loc placeholder, the returned source code is the same for both properties.
You must define a CREATING JOB property in order to add any INPUT SOURCES to a table. If a table does not have a CREATING JOB property, then you must specify one when adding an input source to the table.
Using WHDATTBL |
Add | Update | Delete |
Yes | Yes | Yes |
WHDATTBL is an independent type, like its parent, WHTABLE. To understand how all subtypes of WHTABLE relate to other types, see the table model in Relationships Among Metadata Types.
When you update or add the VIEW CODE property, see Using WHINFO.
You can also use the WHDATTBL type to read Data Mart objects that were created prior to SAS/Warehouse Administrator, Release 1.3.
![]() |
![]() |
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.