Data Transformation Engine Map Designer Reference Guide
Chapter 8 - Functional Map Basics Entering the Map Rule that References the Functional Map
Map Designer Reference Guide
143
In the following map rule, the OrderMap functional map is specified with the
(DetailRecord:Order:Input, SummaryRecord:Order:Input) arguments:
OrderMap (DetailRecord:Order:Input,
SummaryRecord:Order:Input)
The data object SummaryRecord has an optional component range of (0:1). For
the first Order, SummaryRecord is present. The functional map OrderMap is
evaluated. In the second Order, SummaryRecord is missing. The map
OrderMap is not evaluated for that second Order.
To evaluate the entire OrderMap if SummaryRecord may be absent from the
source data, specify the entire Order as an input argument, rather than
SummaryRecord. Specifying the entire Order ensures that OrderMap is
evaluated, even when SummaryRecord is missing. Then, in the functional map
OrderMap, you can still map from SummaryRecord.
To evaluate the entire OrderMap, use the following arguments with the
specification of the OrderMap functional map:
OrderMap (DetailRecord:Order:Input, Order:Input)
Use the entire
Order
as an input argument,
r
ather than
S
ummaryRecord
Entering the Map Rule that References the Functional Map
Map rules that reference functional maps are entered in the rule cells on the
output card of the executable map. Enter the map rule in the rule cell of the data
object that requires additional data processing. The number of times a functional
map is triggered depends on the number of occurrences of the input arguments in
the data, and the expressions used for each argument.
Note This section explains how to manually create a functional map. Optionally, you can
use the Functional Map Wizard to create a functional map. For more information
on the functional map wizard, see Chapter 9 - Functional Map Wizard.
For the executable map for mapping the car data explained earlier in The
Functional Map and Execution Map are in the Same Map Source File section, the
executable map is CarData. The source data contains fixed records and the goal
is to generate an output file containing one delimited record for each fixed record
in the source data.