This scenario describes a batch job that checks and corrects the addresses and postal codes from a file.
The input file for this scenario is already saved in the Repository, so that all schema metadata is available.
In the Repository view, expand the Metadata node and the directory in which the file is saved. Then drag this file into the design workspace.
The dialog box below appears.
Select tFileInputDelimited and click OK to close the dialog box.
The component is displayed in the workspace. The file used in this scenario is called SampleAddresses. It contains address data that comes with a country code. The street and house number are saved together in the street field, while postal code and city are respectively saved in separate fields.
Drag the following components from the Palette into the design workspace: two tMap components, tUniservRTPost and tFileOutputDelimited .
Connect tMap with tUniservRTPost first.
Accept the schema from tUniservRTPost by clicking Yes on the prompt window.
Connect the other components via Row > Main.
Double-click tMap_1 to open the schema mapping window. On the left is the structure of the input file and on the right is the schema of tUniservRTPost. At the bottom is displayed the Schema Editor, where you can find the attributes of the individual columns and edit them.