How to write on the same file?

One Star

How to write on the same file?

Hi,
I would like to write on a same file through Tmap
Exemple :
File Adress
-----------
Jacques;95240
Alain,75021
By way of tmap, the file in exit will become
File Adress
-----------
Jacques;95240,France
Alain,99021,USA
Thanks
One Star

Re: How to write on the same file?

Hi,
I would like to write on a same file through Tmap
Exemple :
File Adress
-----------
Jacques;95240
Alain,99021
By way of tmap, the file in exit will become
File Adress
-----------
Jacques;95240,France
Alain,99021,USA
Thanks
Community Manager

Re: How to write on the same file?

Hello
You need to output the data from a original file to a temporary file first, then read the data from this temporary file and use a tMap to add external columns, finally, output the new data to the original file.(see screenshots)
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How to write on the same file?

Thanks shong