Creating key sequencing for use in a multi-segment key
When you use the keyed synchronization comparison option, you can specify up to 16 segments of record information to be used as the key. A key segment consists of the key's location in the "Old" and "New" data sets and the key's length and data type. These values are built using one of the following sources or a combination of these elements:
- The intrinsic data set keys (where the data set is keyed, for example, VSAM KSDS).
- The key segment sequence information stored in your templates.
- The key location and length information supplied in the Keyed Synchronization Settings panel. This panel is displayed whenever you choose the keyed synchronization option.
To create the key segment sequence information in your template:
- Display your template in the Field Selection/Edit
panel.
When this is done as part of editing or creating a template within the compare process, the panel shows the Key field in place of the Rdf field. When done as part of editing or creating a template from any other location within File Manager, you need to enter the KEYFLDS command to display this field.
- In the Key fields adjacent to the fields you want to
use
in your multi-segment key, enter a number between one and
sixteen.
Your numbers do not need to start at one and do not need to be sequential, but must be unique. The numbers provided indicate the sequence of the fields within the multi-segment key. If you are using a keyed data set (for example, VSAM KSDS) and want to include the data set's intrinsic key in your multi-segment key, you must start the numbering at two or higher. (The intrinsic data set key is always included at position one in the key sequence.)
- Save your template.
When your modified template is used in the compare process, the position and length information of the selected fields is pre-loaded into the appropriate sequence slots of the Keyed Synchronization Settings panel.