You can create a load map from the Load Job window
or from the Components menu of the High-Performance Loader (HPL) main window.
Before you can create a load map, you must create a format
that describes the data file that you plan to load. For information
about how to create a format, see
Define formats.
- Choose from
the HPL main window.
The
Record Maps window appears,
as the following figure shows.
Figure 1. The Load Record
Maps window
- Click Create in the Selection
Type group.
- Choose a name for the map and type it in the Map Name
text box.
- Type the names of the database and table where the data
will be loaded in their corresponding text boxes.
You
can also click the down arrow to choose the names from a selection
list. The Tables selection list includes synonyms that are valid for
the local database server.
- Type the format that describes the data file in the Format text
box.
You can also click the down arrow to choose the
format from a selection list.
- Click OK to open the Map-Definition window.
A
Map-Definition window similar to Figure 2 appears.
- Click a column icon in the left column
in the Table pane and hold the mouse button
down. A box appears around the icon and its name.
- Drag the box to a field icon in the Format pane.
When you connect columns to fields, it does not matter
whether you drag a column to a field or drag a field to a column,
but you must always connect items from the left column of each pane.
The
following figure shows a
Map-Definition
window with this step completed.
Figure 2. Map-Definition window, one association completed
- Repeat steps 7 and 8 for each field that you
want to transfer into the database.
- Add the options that you want, if any. For instructions, see Defining the mapping options.
- Click OK to return to the Load
Record Maps window.