Page 1 of 1

Insert/Delete in DB2 table

Posted: Mon Feb 05, 2007 10:43 am
by sainath
Hi
I have a job design

Code: Select all

Seqfile----xfm---------db2
I have 2 sepetate jobs .One for insert into DB2 table and another for delete into DB2 table.
I want to delete or insert DB2 table based on Key feild in Seqfile.

I want to know whether i have to use target table as lookup and match on key feild and do insert or delete.

please share your thoughts
thks
sai

Posted: Mon Feb 05, 2007 10:48 am
by DSguru2B
If you want to delete only the records based on key field and insert new ones then you can choose update action "Replace existing rows completely" or do a simple update based on the key.

Posted: Mon Feb 05, 2007 1:22 pm
by ray.wurlod
Otherwise two output links from the Transformer stage, each into the DB2 stage. One link manages the deletes, the other manages the inserts.