Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I have a file input and file output,
It's an every day load and i will get file everyday
I want to lookup my output file and check if there is any change in the new input file and if the record doesn't exists in the output file , we need to insert into the output file, if the row already exists , I need to update the data in the output file .
My source and target are files, So I'm stuck in the implementation part.
Can anyone help me out on this.
Thanks for your help.
Mahesh
You can also join each main row field to the corresponding one in the lookup.
You need 2 steps:
1- does the record exist in the previous file?
2- no, this is a new record. yes, have a 2nd tMap with all fields joined to each other to get changed records.
Thanks for your quick reply,
But is there any other way to do other than writing a routine ?
Thanks,
Mahesh
You can also join each main row field to the corresponding one in the lookup.
You need 2 steps:
1- does the record exist in the previous file?
2- no, this is a new record. yes, have a 2nd tMap with all fields joined to each other to get changed records.
Hello TRF,
Can you please explain how to 'update' or 'delete' record in a flat file target.
Example
Data in Src_file :
col1,col2,col3
1,john,employee
2,mary,retired
3,sam,joining
Data in Tgt File(Active employees only):
empno.empname
1,john
2,mary
3,sam
4,Hary
5, Phil
Now that Mary has retired, i need to delete row#2, can you please help