Six Stars

How can i use the custom function writtern in routine in TDM Map?

Hi

 

I have a requirement of perform to mask one field (Account number) from the mainframe data while loading itself. i.e., between the input structure and output structure. I have written specific masking function in a routine. how can i achieve this in the Map. Please help.

 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Twelve Stars TRF
Twelve Stars

Re: How can i use the custom function writtern in routine in TDM Map?

Hi,
Did you watch this vidéo?
https://m.youtube.com/watch?v=sO8cCY_-Vos

TRF
4 REPLIES
Twelve Stars TRF
Twelve Stars

Re: How can i use the custom function writtern in routine in TDM Map?

On the right part (output) of tMap, just write:
yourClass.yourMethod(row1.inputField)
Assuming row1 is the input flow, inputField is the field you want to mask, yourClass is the class name you defined, yourMethod is the masking method which return a string.

TRF
Six Stars

Re: How can i use the custom function writtern in routine in TDM Map?

Hi, Thanks.

 

I need to call the function in the Map functionality in Talend Data Mapper (TDM). I am using TDM for importing the Mainframe data

Twelve Stars TRF
Twelve Stars

Re: How can i use the custom function writtern in routine in TDM Map?

Hi,
Did you watch this vidéo?
https://m.youtube.com/watch?v=sO8cCY_-Vos

TRF
Six Stars

Re: How can i use the custom function writtern in routine in TDM Map?

Thanks, it worked.