Masking function Phone_01 output results deferred from the documentation
search cancel

Masking function Phone_01 output results deferred from the documentation

book

Article ID: 270881

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Have a requirement to do masking on delimited file, file contains SSN where need to use Phone_01 masking function as per business requirement. As per the documentation in Broadcom techdocs masking function Phone_01 will replace the values depend upon value in the param1, but in this case, the param1 value is 5469728130  then below is the picture how the output value to be replace accordingly

Original digit 0 1 2 3 4 5 6 7 8 9
To be digit 5 4 6 9 7 2 8 1 3 0

 but the output value is not as expected giving some random values.

Environment

FDM version: 4.10.121.0

Windows 11

Resolution

As per the masking function PHONE_01 , 4th, 5th and 6th values are replaced with 5 for PHONE_01 function. This is expected functionality.

To achieve the requirement, have a masking function ACCT_01. This will replaces 0 to 9 digits with digits we added in PARAM1. But, the problem with this function is, last digit will always be set to 9. If fine with this, can use ACCT_01 function.