![]() | ![]() |
Home |
|
|
WarehouseArchitect - User's Guide |
|
| Part 3 WarehouseArchitect Model |
|
| Chapter 13: Creating Links to Operational Systems |
|
| Editing extraction expressions |
When you have linked all the columns in the WAM to columns in external databases, you concatenate all the extraction expressions and generate an extraction script.
A table extraction expression is a SELECT query that lists the columns to select from tables in an external database.
You must create an extraction expression for each WAM table, for each external database to which the table is attached.
In a table extraction expression, you can use the following variables:
| Variable
| Description
|
|---|---|
| %TABLE%
| Name or code of the WAM table to which the column belongs (based on display preferences)
|
| %TNAME%
| Name of the WAM table to which the column belongs
|
| %TCODE%
| Code of the WAM table to which the column belongs
|
| %EXTDTBS%
| Name or code of the external database (based on display preferences)
|
| %EXTDNAME%
| Name of the external database
|
| %EXTDCODE%
| Code of the external database
|
| %@SELECT%
| List of expressions defined for each column
|
| %@FROM%
| List of all external tables linked to the WAM table
|
The table property sheet appears.
The External Sources dialog box appears.
The Destination tree shows the WAM table and its columns. By default, the WAM table is selected.
The Source tree shows the external databases to which the WAM table is attached.
The extraction expression for the WAM table for the selected external database appears in the Expression box.
or
Click the Zoom button and use the script editor functions.
In a column extraction expression, you can use the following variables:
| Variable
| Description
|
|---|---|
| %TABLE%
| Name or code of the WAM table to which the column belongs (based on display preferences)
|
| %TNAME%
| Name of the WAM table to which the column belongs
|
| %TCODE%
| Code of the WAM table to which the column belongs
|
| %EXTDTBS%
| Name or code of the external database (based on display preferences)
|
| %EXTDNAME%
| Name of the external database
|
| %EXTDCODE%
| Code of the external database
|
| %COLUMN%
| Name or code of the column
|
The table property sheet appears.
The External Sources dialog box appears.
The Destination tree shows the WAM table and its columns. By default, the WAM table is selected.
The column extraction expression appears in the Expression box.
or
Click the Zoom button and use the script editor.
Using the script editor, you can insert the following categories of script language into a customized script:
| Category
| What it inserts in the script
|
|---|---|
| Tables
| Table code
|
| Functions
| DBMS-specific function
|
| Operators
| Logical operator
|
| External Tables
| External table code
|
| External Columns
| External column code
|
| External Databases
| External database code
|
The table property sheet appears.
The External Sources dialog box appears.
or
Select an external column to edit a column extraction script.
The extraction expression appears in the Expression box.
The script editor window appears.
For example, select Table to display a list of tables.
The selected item is inserted at the cursor position.
You can preview extraction expressions before you generate them. The preview shows the generated contents of the script with instanciated variables.
The table property sheet appears.
The External Sources dialog box appears.
The extraction expression for the external database appears in the Expression box.
The preview window shows the corresponding command for the target DBMS.
An expression becomes invalid when you break the link between an object in the WAM and an external object. A list of invalid expressions appears when you check the model before generating an extraction script.
An expression automatically becomes invalid when you modify or delete a table or column in the WAM.
You can also invalidate an expression manually. When you do this, the expression remains visible, although it is no longer linked to the item.
The table property sheet appears.
The External Sources dialog box appears.
The extraction expression for the external object appears in the Expression box.
This renders the expression invalid for the item. The expression remains visible even though it is no longer attached to the item. To make the expression valid again for the item, you must check the Invalid Expression checkbox.
|
|