Defining alternative field maps for a segment

Use the Add or Edit Segment Maps wizard to define alternative field maps. For a segment, you create one or more maps. For each map, you create one or more map cases. You can use the Import Data Source wizard or the Add or Edit Fields wizard to add fields to your map cases.

Procedure

To define alternative field maps for a segment:

  1. In the model of your project in the IMS DBD editor, right-click the segment that contains the field that you want to add or edit a segment map for and click Add or Edit Segment Maps.
  2. In the Add or Edit Segment Maps wizard, define a segment map by clicking Add in the Segment Maps section. (Alternatively, select a map and click Edit to modify an existing map.)
  3. In the Add Map window, specify a map name and control field name, and click Finish.
    Map name (NAME)
    1- to 128-alphanumeric characters, including these characters: $ # @. Cannot begin with DFS.
    Control field name (DEPENDINGON)
    Identifies the external name of the control field whose value serves as the map case identifier.
  4. Create a case by clicking Add in the Map Cases section.
  5. In the Add Case window, specify a case name, unique case identifier data type, and unique case identifier. Click Finish.
    Case name (NAME)
    1- to 128-alphanumeric characters, including these characters: $ # @. Cannot begin with DFS.
    Control field data type (CASEIDTYPE)
    Specify whether the case identifier is a character or hexadecimal value.
    Control field value (CASEID)
    Character
    1- to 128-alphanumeric characters, including these characters: $ # @.
    Hexadecimal
    A hexadecimal character (0 through 9 and A through F) string whose length is twice the value specified on the length (BYTES) parameter of the control field name.
  6. Repeat steps 2 through 5 to create additional maps and cases until all alternative field maps for the segment maps are defined.
  7. Click Finish.
  8. To save the changes to your DBD, press Ctrl+S.

Results

You successfully created alternate field maps for a segment.




© Copyright IBM Corporation 2010, 2017.