Data Transformation Engine Design Studio Tutorial

Chapter 3 - Modifying the Mail.mms Map Source File Scenario
Design Studio Tutorial
73
Scenario
You have a file that consists of multiple records containing information about your
customers. This source data is the FullContact.txt text file.
The FullContact.txt file of records contains optional data objects; the records of
some customers contain middle names or middle initials. Using the
FullContact.txt file of multiple records as input, you want to generate one
mailing label for each contact record in the input data.
The data object on the Label output card in the ContactToLabel map represents
a single label. The value of the Type Name on this Label output card is Label.
The Label group type represents a single label.
The output card Type Name must be changed to the data object that represents
the output file of label records. The data object that represents the entire file of
label records is LabelFile.
The map rules on the Label output card specify the logic for generating the
mailing labels. These map rules must be modified to conditionally include the
middle name or initial in the generated mailing labels.
Copying an Input Card
The ContactToLabel map in the Mail.mms map source file maps a file of one
contact record to a single label record. You can copy input and output cards in a
map to an existing map or to create a new map.
Copy the input card in the ContactToLabel map to the Mail.mms map source
file. Name the new input card ContactFile (same name as the original input
card). Name the new map ContactToFullLabel. This new map will be in the same
Mail.mms map source file.
To copy the ContactFile input card to a new map
1 Open the Mail.mms map.
2 In the Navigator, select the ContactFile input card in the ContactToLabel
map.
3 From the Card menu, choose Copy.
The Copy Card dialog box appears.