Insert/Delete in DB2 table

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

Insert/Delete in DB2 table

Post 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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply