Data Transformation Engine Map Designer Reference Guide

Chapter 7 - Formulating Map Rules Mapping a Group to a Group
Map Designer Reference Guide
129
Mapping a Group to a Group
Desired output of an input group may be the same as an input group. If the
output group is the same type and is defined in the same type tree as the input
group, drag the input group into the map rule cell of the output group. If the input
group is a partition of the output group, you can drag the partition into the rule
cell of the output group.
Note If the input group and output group are different types, you cannot drag the input
group to the output group. Either expand the output group down to its item
components, or use a functional map.
Automatic Conversion of Syntax Items
Syntax items are automatically converted from an input group to the syntax items
of the output group. If the delimiters, terminators, and release characters of a
data object are variable, these values are defined in the input data stream. To
convert these values to other values, you may drag the input group to the output
group map rule. The output group is built using the default values or data values
for the syntax items.
Mapping to a Group with a Maximum Range of 1
Generally, do not drag a group from the input to the output. This is only possible if
the input group and the output group are the exact same group, which is not very
common. When the range of a group has a maximum of 1, expand that output
group and map to its components.
Outputs with a Maximum Range Greater than 1
For outputs with a component range maximum greater than 1 – (for example,
(1:10) or (s)), define how many of that particular output to generate. There are
two possible situations:
the number of objects to create is known, or
the number of objects to create is based on the number of some other object
in the input or output data.
When the number of objects to create is known, index that number of output
occurrences.