Field Mapping panel

The Field Mapping panel describes the current relationship between receiving fields in the “To” (or “New”) template or copybook to sending fields in the “From” (or “OLD”) template or copybook. File Manager generates corresponding mappings based upon field names if you have issued the GM (Generate corresponding map) command prior to editing the mapping relationship; or the GE command (Generate and edit mapping).

This panel is displayed when “edit template” has been requested from the “To” panel of the Copy Utility, the Options panel of the Compare Utility or the Map To panel of the Template Workbench, and the “To” or “New” template or copybook contains only one record type, or when the E or S command is issued on the Record Type Mapping panel.

Note: If called from the Compare Utility, the panel displays all labels with “New” instead of “To” and “Old” instead of “From”.

Panel and field definitions

Figure 1. The Field Mapping panel
  Process   Options   Help
 ──────────────────────────────────────────────────────────────────────────────
 File Manager                     Field Mapping                     Line 1 of 7

 To           USERID.TEMPLATE(FMNCCPY2)
 From         USERID.TEMPLATE(COPYTST1)

 Cmd Lv To Field Name       Type  Len   Lv From Field Name             Type  Len
        ****  Top of data  ****
      1 NEW-TYPE01           AN    84 |  1 REC-TYPE01                   AN    80
      2 REC-TYPE             AN     2 |  2 REC-TYPE                     AN     2
      2 NAME                 AN    20 |  2 NAME                         AN    20
      2 SERIAL-NO            BI     4 |
      2 AGE                  BI     2 |  2 AGE                          BI     2
      2 SALARY               PD     4 |  2 SALARY                       PD     4
      2 MONTH                BI     4 |  2 MONTH                        BI     4
        ****  End of data  ****


 Command ===>                                                       Scroll PAGE
  F1=Help      F2=Split     F3=Exit      F4=CRetriev  F5=RFind     F6=Describe
  F7=Up        F8=Down      F9=Swap     F12=Cancel
TO (or NEW) template/copybook
The name of the copybook or template that contains the record descriptions for the “To” or “New” data set.
FROM (or OLD) template/copybook
The name of the copybook or template that contains the record descriptions for the “From” or “Old” data set.
(To or New) Lev, Field Name, Type and Len
Shows the level number, field name, type and length of the fields in the “To” or “New” template.
(From or Old) Lev, Field Name, Type and Len
Shows the level number, field name, type and length of the fields in the “From” or “Old” template that have been mapped to the “To” or “New” field.
Cmd
Prefix command area - used to enter a template editor prefix command. Enter S to change the field mapping or E to edit the new field attributes.

Parent panels

Child panels

Related tasks and examples