Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am new to talend tool.
I am trying to load data into Database table for multiple files with same structure.
So I have used tFileList and Iterate for each file and loaded the files.
But my requirment is load all the files into stage table with Fileid for each files.
I am attaching the screenshot for the same.
Example :
file1.txt
id,name,state,country
011,aa,TX,US
012,bb,NC,US
file2.txt
id,name,state,country
123,cc,NY,US
456,dd,CA,US
Target
fileid,seqno,id,name,state,country.filename
1,1,011,aa,TX,US,file1.txt
1,2,012,bb,NC,US,file1.txt
2,3,123,cc,NY,US,file2.txt
2,4,656,dd,CA,US,file2.txt
Fileid should be same for all the records if it is coming from same file.
Please let me know how can we achieve this in talend? please do needful.
Thanks Richard!!!
@nannan many thanks for your details explanation. it worked as expected