Generate a multi-ouptut flattening map from your input
structure.
For more information about flattening maps, see Creating a flattening map.
Procedure
In the Data Mapper tab
of the Mapping perspective, right-click Maps in Hierarchical
Mapper and click New > Map.
Select Flattening Map - Create a map which flattens an input
structure and click Next.
Select a folder and enter a name for the map, then click
Next.
Select the input structure that you created and click
Next.
Select a folder and enter a name for the new structure, then click
Next.
Select the Multi-output radio button.
Clear the check boxes for all nodes except mondial and
country.
You can select all elements from continent to
langtree, then right-click and click
Unselect.
Expand the country node and select the check box in the
Output column for the country,
city and province nodes, then click
Next.
Configure the country output:
Right-click the country node and click
Set Pivot.
Clear the check boxes for the nodes that you want to remove from the
output.
By default, only loops are displayed. You can display other nodes by
clicking the Filter primitive nodes button.
If needed, update the Max Occurs for the
elements that you want to keep.
Use the drop-down list to switch to the city output and
configure it as follows:
Right-click the city node and click
Set Pivot.
Clear the check boxes for all primitive fields under
country, except for
country/Attributes/car_code, then click the button to apply this
selection to the next output.
This data is already available in the first output so it can be
removed from the others. The car_code can be used to
identify the country in all outputs.
Clear the check boxes for the nodes under city that
you want to remove from the output.
If needed, update the Max Occurs for the
elements that you want to keep.
Switch to the province output and configure it as
follows:
Right-click the province node and click
Set Pivot.
Clear the check boxes for the nodes under province
that you want to remove from the output.
If needed, update the Max Occurs for the
elements that you want to keep.
Click Next and clear
the Create Studio schemas from the flattened structure for each
output check box, then click Finish.
Results
Your map is generated, you can now use it in a Job.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!