Previous Page | Next Page

SAS/Warehouse Administrator Metadata Types

WHDATTBL



Metadata type for data tables
Category: Object Types--Explorer

Parent
Overview
Properties
Property Dependencies
Using WHDATTBL

Parent

WHTABLE


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:

  1. Select a data group with the right mouse button.

  2. Select Add Item [arrow] data table

  3. Select the data table with the right mouse button.

  4. Select Properties.

  5. Enter the data table information.


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.

Properties


Type Add Method Update Method Read Method Expand Parm.
Access Same As Physical N Yes Yes No
Administrator L Yes Yes No
Columns L Yes Yes Yes
Creating Job L Yes (see Property Dependencies) Yes (see Property Dependencies) No
Cvalue C Yes Yes No
Desc C Yes Yes No
Extended Attributes L Yes Yes Yes
Group L * Req Yes No
Host L Yes Yes No
Icon C Yes Yes No
Id C * Req * Req No
Input Objects L No No No
Input Sources L Yes (see Property Dependencies) Yes (see Property Dependencies) No
Library L Yes Yes No
Members L No No No
Metadata Created C No No No
Metadata Updated C No No No
Name C * Default Yes No
Note L Yes Yes Yes
NValue N Yes Yes No
Output Objects L No No No
Output Targets L Yes Yes No
Owner L Yes Yes No
Physical Storage L Yes Yes Yes
Process L Yes Yes Yes
Resolved View Code L No No Yes
Table Name C Yes Yes No
Using Jobs L No No No
View Code L Yes Yes Yes

New properties for WHDATTBL are as follows:

RESOLVED VIEW CODE

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.

VIEW CODE

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.   [cautionend]

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.


Property Dependencies

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.

Previous Page | Next Page | Top of Page