# Mapping an input to three outputs

Configure your map to filter records from an input file and write the result to three different outputs.

## Procedure

1. Place the input order element to the output APACRecord, EMEARecord and USRecord elements.
2. Click the APACRecord element and place an Equal function from the Functions tab on the Filter argument of the SimpleLoop.
3. Place the input region element on the First Value argument.
4. Place a Constant function on the Second Value argument, then double-click it and enter APAC in the Value field.

   With this filter, the APAC output will only contain records in which the value for the region element is APAC. ![APAC filter.](https://help.qlik.com/talend/en-US/data-mapper-user-guide/Resources/images/splitting_file_03_filter.png)
5. Right-click the Equal function and click Copy then right-click the Filter argument in the EMEARecord element and click Paste.

   This allows you to copy and paste the function and its arguments.
6. Change the value for the Constant function to EMEA, and repeat the same steps for the USRecord element.
7. Save your map and open your Job in the Integration perspective to run it.

## Results

When running the Job using the sample XML input, you should get three output files with the following content:

```
orderId;lastName;firstName;region
l7xZ4P;George;Harding;APAC
wZlWOj;William;Quincy;APAC
```

```
orderId;lastName;firstName;region
vF7lNh;Bill;Madison;EMEA
```

```
orderId;lastName;firstName;region
ih3fPC;Chester;Harding;US
dTTrNO;Abraham;Roosevelt;US
```