After you have a Data Group to group Data Tables, you can
then
add Data Tables to that group. This example creates a Data Table to be used
as a look-up table, for example, to find the city and state associated with
a specific zipcode.
Note: The following explanations
describe the metadata and methods to achieve the desired results; it is assumed
that the appropriate Data Warehouse Environment, Data Warehouse, Subject,
Data Group, and ODD exist.
In
the SAS/Warehouse Administrator Explorer,
position the cursor on the Data Group, for example, Intermediate
Tables Data Group, click the right mouse button, select Add Item, and then Data Table. In
the Explorer window, a new Data Table is added under the Data Group as
follows:
To update the default metadata for the table,
put the
cursor on its icon, press the right mouse button, and select Properties. The Data Table Properties window displays for you
to enter the appropriate information, which is described next:
General Tab |
specifies the table's name Zipcode Lookup, a description, an owner, and an
administrator.
|
Columns
Tab |
specifies the columns to be included
in the Data Table, which do not exist yet as
follows:
To import columns from an input source, click
Import to display a list of input sources, and then select one, for
example, Operational Data Sources. The Import Column
Metadata window displays.
From the Import Column Metadata window, which lists
the available sources, select an ODD, for example Geography,
to display its available columns.
Select the
appropriate columns under Columns (which for this example are city_nam, region_n,
state_na, and zipcode), use the double arrows to move them to Selected Columns, and then click
OK. You are
returned to the Columns tab in the Data Table Properties window, which lists
the imported columns:
|
Physical
Storage Tab |
specifies the physical storage attributes.
This example specifies the storage format SAS
and the load technique
Refresh.
Click
Define to open the SAS Table
Properties window and view its metadata.
Location Tab |
specifies where the SAS table is
stored. |
|
Access Location
Tab |
specifies a location to provide interactive
access to the Data Table. For this example, the check box Use
Physical Storage Location as the Access Location is selected
by default, which enables the software to use information from the Physical
Storage tab to provide interactive access to the
table.
|
Open Code
Tab |
specifies the source code used to
view the table.
|
In the Process Editor Job, the Data Table Zipcode Lookup is specified as the
output target and the ODD Geography is specified as the input source. The following
Process Editor window shows the Process Flow for the
Job:
The processes defined in the Job are summarized
as follows:
Mapping Process |
-
Column
mapping is defined as one-to-one mapping,
as shown in the Column Mapping tab. To produce one-to-one mapping, first click 1 to 1 Mappings from the Column Mapping tab, which opens the One-to-One
Column Mapping window. Then, click Quick
Map.
|
Load
Step Process |
|
For
more information about Process Editor Jobs, see Maintaining Jobs. For more
information about processes, see Maintaining Processes.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.