What is the SAS/Warehouse Administrator Metadata API?
What Can I Do with the SAS/Warehouse Administrator Metadata API?
How the Metadata API Works
Identifying Metadata
Reading Metadata: A Simple Example
Metadata Repositories
Setting the Active Metadata Repository
Learning to Use the Metadata API
Naming Conventions Used in This Manual
Where Metadata API Classes and SLISTS are Stored
Metadata API Class
Overview of the Metadata API Class
Using the Metadata API Class
Introduction to Metadata API Methods
Conventions
Error Codes
Metadata Property List
Index to Metadata API Methods
SAS/Warehouse Administrator Metadata Types
Overview of SAS/Warehouse Administrator Metadata Types
What Is a Metadata Type?
Metadata Repository Types
Metadata Type Inheritance
Using Metadata Types
Relationships Among Metadata Types
Writing Metadata
Overview of the Process Editor
Reading Process Flow Metadata
Input Tables, Output Tables, and Job Metadata
Reading Job Metadata
Reading Job Flow Metadata
Reading Job Hierarchy Metadata
Using Icon Information
Index to SAS/Warehouse Administrator Metadata Types
Using the Metadata Type Dictionary
General Identifying Information
Sample Metadata API Code
Appendix Overview
Read Metadata Code Sample
Write Metadata Code Sample
Metadata Type Inheritance Tree
SAS/Warehouse Administrator Metadata Type Inheritance Tree
Recommended Reading
Recommended Reading
Glossary
Index
Nội dung
SAS/Warehouse Administrator Metadata Types WHLDRMDB 167 Step Source Code L * Auto supplied No Yes Subprocesses L Yes Yes Yes Property Dependencies You can add a load time column to a table as described in the documentation for the WHCOLTIM type. Using WHLDRLDT WHLDRLDT is valid for the following metadata API write methods: Add Update Delete No Yes No WHLDRLDT is a dependent type. To understand how all subtypes of WHPROCES relate to other types, see the process models in “Relationships Among Metadata Types” on page 53. For details about reading process information, see “Reading Process Flow Metadata” on page 62. WHLDRMDB Metadata type for SAS MDDB load processes Category: Process Types—Load Parent “WHPRCLDR” on page 207 Overview WHLDRMDB models the metadata for SAS MDDB (multidimensional database) load processes in the SAS/Warehouse Administrator Process Editor. Here is one way to add an MDDB load process in SAS/Warehouse Administrator: 1 In the Explorer, select an MDDB with the right mouse button. 2 Select Process from the pop-up menu. 3 In the Process Editor, select the MDDB with the right mouse button. 4 Select Edit Load Step. 5 Enter the process information. Properties The following table lists all of the properties for WHLDRMDB and indicates how you can use each property with metadata API methods. 168 WHLDRMDB Chapter 3 In the table, you can specify properties with a Ye s in the Indirect Add column when you indirectly add one object through another, as described in the documentation for the _UPDATE_METADATA_ method. Use this approach to add a new dependent object. For details, see “Using _UPDATE_METADATA_” on page 46. You can pass properties with a Ye s in the Update column to the _UPDATE_METADATA_ method, as described in the documentation for this method. Use this method to update properties of an existing object. For details, see “Using _UPDATE_METADATA_” on page 46. * 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. * Auto supplied means that the property is automatically supplied; any value that you specify for such a property is ignored. 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 Indirect Add Update Method Read Method Expand Parm. Administrator L No No No Cvalue C Yes Yes No Desc C * Auto supplied No No Extended Attributes L Yes Yes Yes Host L No No No Id C No No No Load Options L No No No Metadata Created C * Auto supplied No No Metadata Updated C * Auto supplied No No Name C * Auto supplied No No Note L Yes Yes Yes NValue N Yes Yes No Output Tables L * Auto supplied No No Owner L No No No Responsibility C * Default No No Source Code L No No Yes Source File L No No Yes Step Source Code L Yes Yes Yes SAS/Warehouse Administrator Metadata Types WHLDRODD 169 Stepo Source Code L *Auto supplied No Yes Subprocesses L Yes Yes Yes Property Dependencies You can add a load time column to a table as described in the documentation for the WHCOLTIM type. Using WHLDRMDB Add Update Delete No No No WHLDRMDB is a dependent type. To understand how all subtypes of WHPROCES relate to other types, see the process models in “Relationships Among Metadata Types” on page 53. For details about reading process information, see “Reading Process Flow Metadata” on page 62. WHLDRODD Metadata type for ODD load processes Category: Process Types—Load Parent “WHPRCLDR” on page 207 Overview WHLDRODD models the metadata for operational data definition (ODD) table load processes in the SAS/Warehouse Administrator Process Editor. An ODD is a metadata record that provides access to data stores. Here is one way to add an ODD load process in SAS/Warehouse Administrator: 1 In the Explorer, select an ODD with the right mouse button. 2 Select Process from the pop-up menu. 3 In the Process Editor, select the ODD with the right mouse button. 4 Select Edit Load Step. 5 Enter the process information. Properties The following table lists all of the properties for WHLDRODD and indicates how you can use each property with metadata API methods. 170 WHLDRODD Chapter 3 In the table, you can specify properties with a Ye s in the Indirect Add column when you indirectly add one object through another, as described in the documentation for the _UPDATE_METADATA_ method. Use this approach to add a new dependent object. For details, see “Using _UPDATE_METADATA_” on page 46. You can pass properties with a Ye s in the Update column to the _UPDATE_METADATA_ method, as described in the documentation for this method. Use this method to update properties of an existing object. For details, see “Using _UPDATE_METADATA_” on page 46. * 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. * Auto supplied means that the property is automatically supplied; any value that you specify for such a property is ignored. 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 Indirect Add Update Method Read Method Expand Parm. Administrator L No No No Cvalue C Yes Yes No Desc C * Auto supplied No No Extended Attributes L Yes Yes Yes Host L Yes Yes No Id C * Req * Req No Load Options L Yes Yes No Metadata Created C * Auto supplied No No Metadata Updated C * Auto supplied No No Name C * Auto supplied No No Note L Yes Yes Yes NValue N Yes Yes No Output Tables L * Auto supplied No No Owner L No No No Responsibility C * Default Yes No Source Code L No No Yes Source File L Yes Yes Yes SAS/Warehouse Administrator Metadata Types WHLDRODT 171 Step Source Code L * Auto supplied No Yes Subprocesses L Yes Yes Yes Property Dependencies You can add a load time column to a table as described in the documentation for the WHCOLTIM type. Using WHLDRODD WHLDRODD is valid for the following metadata API write methods: Add Update Delete No Yes No WHLDRODD is a dependent type. To understand how all subtypes of WHPROCES relate to other types, see the process models in “Relationships Among Metadata Types” on page 53. For details about reading process information, see “Reading Process Flow Metadata” on page 62. WHLDRODT Metadata type for ODT (Data File) load processes Category: Process Types—Load Parent “WHPRCLDR” on page 207 Overview WHLDRODT models the metadata for operational data table (ODT) load processes in the SAS/Warehouse Administrator Process Editor. An ODT is a SAS table that is an input to an operational data definition in the Process Editor. In the Process Editor, the ODT is called a data file. Here is one way to add an ODT load process in SAS/Warehouse Administrator: 1 In the Explorer, select an ODD with the right mouse button. 2 Select Process from the pop-up menu. 3 In the Process Editor, select the ODD with the right mouse button. 4 Select Add Data File 5 Select the data file with the right mouse button. . models in “Relationships Among Metadata Types” on page 53. For details about reading process information, see “Reading Process Flow Metadata on page 62. WHLDRMDB Metadata type for SAS MDDB load. models in “Relationships Among Metadata Types” on page 53. For details about reading process information, see “Reading Process Flow Metadata on page 62. WHLDRODD Metadata type for ODD load processes Category:. Types—Load Parent “WHPRCLDR” on page 20 7 Overview WHLDRODD models the metadata for operational data definition (ODD) table load processes in the SAS/Warehouse Administrator Process Editor. An ODD is a metadata record