How To Mask a String in a Column Value in PostgreSQL Target - DSS 6 | Data Source Solutions Documentation
Documentation: How To Mask a String in a Column Value in PostgreSQL Target - DSS 6 | Data Source Solutions Documentation
How To Mask String in a Column Value in PostgreSQL Target
Question
There are situations when I may prefer not to make the password visible to the end users. How can I mask a string in a column value in a PostgreSQL target?
Environment
DSS 6
Answer
This can be achieved by using the PostgreSQL database’s inbuilt replace function in the IntegrateExpression. For example, if you would like to mask string A1234 to XXXX in PostgreSQL:
-
Add the below IntegrateExpression to the Target Group.
ColumnProperties /Name=c2 /IntegrateExpression="replace ({c2},'A1234','XXXX')"c2is the column name.- Initialize the channel with scripts and Jobs.