Академический Документы
Профессиональный Документы
Культура Документы
Table of Contents
Overview ........................................................................................................................................................................... 2
Source File........................................................................................................................................................................ 3
Source Qualifier Transformation ....................................................................................................................................... 3
Data Masking Transformation........................................................................................................................................... 3
Configuring Mapping Parameters................................................................................................................................. 4
Configuring Expression Masking .................................................................................................................................. 5
Lookup Transformation ..................................................................................................................................................... 6
Target File......................................................................................................................................................................... 6
Overview
The following example shows how to configure expression masking in the Data Masking transformation.
A company insurance policy file contains sensitive data that you want to use in a test scenario, but you need to
maintain security. You can create a mapping to mask each column of the company data and write the test data to
another file.
The mapping includes a Data Masking transformation to mask the company fields. It also includes a Lookup
transformation that retrieves a substitute company name from a dictionary file.
The following figure shows the mapping:
Type
Description
SQ_Company_Policy
Source Qualifier
DM_Mask_Company_
Policy_Names
Data Masking
LKUP_Company_Names
Lookup
Random. Generates a new start and end date within three months of the
original dates. Generates a random number to use in a Lookup
transformation.
Source File
The following table describes each source column and the masking requirements:
Column
Datatype
Mask
Transformation
Mask Objectives
Company_ID
Integer
Data Masking
Company_Name
String
Lookup
Policy_Number
Integer
Data Masking
Start_Date
Date/time
Data Masking
End_Date
Date/time
Data Masking
The following figure shows how each port in the Data Masking transformation is masked:
On the Masking Properties tab, select a port and choose key masking.
2.
3.
On the Masking Properties tab, select a port and choose Expression Masking.
The Designer displays the port name as the default expression.
2.
3.
To calculate a new end date that maintains the same policy length, the expression calculates the number of days
between the original start and end dates. It adds the result to the masked start date to determine the new end
date.
You can select the functions and port names to use in the expression. The Expression Editor validates the
expression when you click OK. You can also click Validate to verify the expression syntax. The expression
appears on the Masking Properties tab.
Lookup Transformation
The mapping contains a Lookup transformation to retrieve random company names from a lookup file. The lookup
source is a sample company names file that has 500 records. The mapping substitutes company names from the
production data with company names from the dictionary file. The Lookup transformation receives a random number
between 1 and 500 from the Data Masking transformation.
Each company record contains a serial number and company name. The Company_Names file contains records
similar to the following:
SNO,COMPANY_NAME
1,7-ELEVEN
2,ABBOTT LABORATORIES
3,ADC TELECOMMUNICATIONS
4,ADELPHIA COMMUNICATIONS
5,ADOBE SYSTEMS
6,ADVANCED MICRO DEVICES
The following figure shows the ports in the LKP_Company_Names Lookup transformation:
The lookup condition compares the value of the random number with the serial number in the Company_Names.dic
file. The Lookup transformation returns the record that contains the serial number equal to the random number. The
Condition tab contains the following lookup condition:
SNO = out_Randid1
Target File
The Company_Policy target definition receives the new company data from the following mapping components:
Transformation
Column Name
Data Masking
Lkp_Company_Names
Company_Name
The Target_Company_Policy file contains realistic data that you can use in a test environment. None of the original
data can be derived from the substitute data.
Author
Ellen Chandler
Principal Technical Writer