Number of input and output field
| Number of input field |
: |
One |
| Number of output field |
: |
One |
This transformation function is used to mask data with a specified masking character.
The parameters of this transformation function are:
- Start Index
The position of the first character to be masked (0-based index).
- If omitted, the default is 0.
- If a negative value -N is provided, the start index is calculated as (data_length - N).
- Number of Characters
The number of characters to mask.
- If omitted, all characters from the Start Index to the end of the data will be masked.
- Masking Character
The character used to mask the data.
- If omitted, the default masking character is 'X'.
Examples of the DataMasking function:
Input : 0123456789
Start Index : 4
Number of Characters : 3
Masking Character : *
Result : 0123***789
Input : 0123456789
Start Index : 4
Number of Characters :
Masking Character : *
Result : 0123******
Input : 0123456789
Start Index :
Number of Characters : 3
Masking Character : *
Result : ***3456789
Input : 0123456789
Start Index :
Number of Characters :
Masking Character : *
Result : **********
Input : 0123456789
Start Index : -4
Number of Characters : 3
Masking Character : *
Result : 012345***9
Input : 0123456789
Start Index : -4
Number of Characters :
Masking Character : *
Result : 012345****