By registering the XML library, you registered the location of the XML file that contains
the XML target table. You must also register the XML table itself, to specify its
columns and other attributes.
The
New
Table wizard is used to register a table that does not yet exist in physical storage, such
as a table that is created
when a job is executed for the first time. This wizard enables you to copy metadata
from one
or more registered tables into the
metadata object for the new table. For the sample job, assume that we want all columns in the input
table (EMPLOYEES...) to appear in the XML target table.
Perform the following steps to register the XML target table:
-
Right-click a destination
folder in the Folders tree. Then select
NewTable from the pop-up menu
to access the
General Information page of
the
New Table window.
-
Enter a name and an optional description for the target table. For example, the name
for the table in the sample job is Xsort_emp. Then, click Next to
access the Table Storage Information page.
-
Use the drop-down menus
in the DBMS and Library fields to select the appropriate DBMS type and library name values. (The sample job
values are XML - All Documents and EMP_XML.)
The following display shows the table storage information for the
sample job:
-
Click Next to
access the Select Columns page.
-
Navigate in the Available
Tables field until you find the table containing the columns that you want to use for the
target table definition. Then, move the columns to the Selected field. For the sample job, all of the columns in the EMPLOYEES... table are used.
Click Next to access the Change
Columns/Indexes page.
-
Review the column data
for the table and make any necessary changes. Click Next to
access the summary page.
-
Review the details and
click Finish to save the table and close
the New Table wizard.