From (or Old) Field Mapping panel

The From Field Mapping panel (or Old Field Mapping panel) provides a list of fields in the “From” or “Old” copybook or template that can be mapped to the selected field in the “To” copybook or template. If called from within the Copy Utility or the Template Workbench and the field does not qualify as a sending field for the selected TO field, the prefix command area is protected (see Field mapping rules).

This panel is displayed when the E prefix command is entered against a field on the Field Mapping panel.

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

Panel and field definitions

Figure 1. The From Field Mapping panel
  Process   Options   Help
 ──────────────────────────────────────────────────────────────────────────────
 File Manager                  From Field Mapping
 To   template/copybook : FMNUSER.TEMPLATE(FMNCCPY1)
 From template/copybook : FMN.SFMNSAM1(FMNCCPY)
 To field . . . . . . . : #4 EMPLOYEE-NO
 From field . . . . . . : #5 EMPLOYEE-NO
 Corresponding(Y/N) . . : N               (Auto map for group items).

 Sel   Ref Lvl From Field                                       Typ Start Length
               ****  Top of data  ****
 ___     D --  Delete "From field"
 ___     1  1  REC-TYPE01                                       AN      1     80
 ___     2  2  REC-TYPE                                         AN      1      2
 ___     3  2  REC-ID                                           AN      1      2
 ___     4  2  NAME                                             AN      3     20
 ___     5  2  EMPLOYEE-NO                                      BI     23      2
 ___     6  2  AGE                                              BI     25      2
 ___     7  2  SALARY                                           PD     27      4
 ___     8  2  MONTH(12)                                        BI     31      4
 ___     9  2  FILLER                                           AN     79      2
 Command ===>                                                       Scroll PAGE
  F1=Help      F2=Split     F3=Exit      F4=CRetriev  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 "New" data set.
From (or Old) template/copybook
The name of the copybook or template that contains the record descriptions for the "Old" data set.
To (or New) field
Field reference number and name of selected "New" field
From (or Old) field
Field reference number and name of selected "Old" field
Corresponding
Used to specify whether File Manager should automatically map subordinate elementary fields when the “To” or “New” and “From” or “Old” fields are group fields. Specify Y if you want each elementary field in the “From” or “Old” group field mapped to a field in the “To” or “New” group field with the same name. Specify N if you only want the “From” or “Old” field mapped to the “To” or “New” field as though both fields were elementary fields.
Sel
Select field - used to select the “From” or “Old” field you want to map to the “To” or “New” field. You can select the field by entering S in this field.
Ref
From field reference - shows the field reference number assigned by File Manager to the field name in the “From” or “Old” template.
Lev and Field Name
Shows the level number and field name of fields in the “From” or “Old” template that can be validly mapped to the “To” or “New” field. If the selected “To” or “New” field is a level-01 field, only level-01 fields in the “From” or “Old” template are listed. For a “To” or “New” field other than a level-01 field, only those “From” or “Old” fields that can validly be moved to the selected “To” or “New” field are listed for selection.
Type
Shows the data type of the “From” or “Old” field.
Start
Shows the start column of the “From” or “Old” field.
Length
Shows the length of the “From” or “Old” field. For a level-01 field, if the record is variable length, the length shown is the maximum record length.
Delete "from field" (or Delete "old field")
Select this entry if you want to clear the “From” or “Old” field that is currently selected for mapping to the “To” or “New” field.

Parent panels

Child panels

Related tasks and examples