Procedure
-
Double-click tPatternMasking to display its
Basic settings view in the
Component tab.
- If required, click Sync columns to retrieve the schema defined in the input component.
-
Click the Edit schema
button to open the schema dialog box.
tPatternMasking adds a read-only column to the output schema.
The ORIGINAL_MARK column labels output records:
- Original records are labeled with the
true
label. - Substitute records are labeled with the
false
label.
- Original records are labeled with the
-
In the Modifications table, click the
[+] button to add a row for configuring the first
data masking operation:
-
From the Column to mask field, select the column
which holds the data to be masked.
In this example, select IBAN.
-
From the Field type field, select
Enumeration as the field type the data
belongs to and enter "FR" in the
Values field.
In this example, the purpose is to mask the first two characters with a single user-defined code country: "FR".
-
From the Column to mask field, select the column
which holds the data to be masked.
-
In the Modifications table, click the
[+] button to add a second row for configuring the
second data masking operation:
- From the Column to mask field, select the column which holds the data to be masked.
-
From the Field type field, select
Enumeration as the field type the data
belongs to and enter "30002,29943,23332,01242" in
the Values field.
In this example, the purpose is to mask the five digits appearing in the bank identifier with one of the named values.
-
In the Modifications table, click the
[+] button to add a third row for configuring the
third data masking operation:
-
From the Column to mask field, select the column
which holds the data to be masked.
In this example, select IBAN.
-
From the Field type field, select
Interval as the field type the data belongs
to and enter "1,99999" in the
Range field.
"0,99999" will be interpreted as "00000,99999", which means that the five digits appearing in the branch identifier will be replaced with a value randomly selected from the 00000 - 99999 range.
-
From the Column to mask field, select the column
which holds the data to be masked.
-
In the Modifications table, click the
[+] button to add eleven additional rows and
configure the data masking operation to be performed on each of the eleven
characters appearing in the account number:
-
From the Column to mask field, select the column
which holds the data to be masked.
In this example, select IBAN.
-
From the Field type field, select
Enumeration as the field type the data
belongs to and enter
"0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z"
in the Values field.
In this example, the purpose is to mask each of the eleven characters appearing in the account number with one of characters from the specified range.
-
From the Column to mask field, select the column
which holds the data to be masked.
-
Click the Advanced
settings tab and select the Output
the original row? check box.
The Job will output both original and substitute records.