How to peorfrm insert and update using merge stage?

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
jvravi
Participant
Posts: 1
Joined: Tue Aug 28, 2007 7:39 am

How to peorfrm insert and update using merge stage?

Post by jvravi »

Hi,

I want to merge two tables. If i find any matching records then i need to update that records else i need to insert that record.

Could you help me how to acheive this using Merge stage
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is this a server job question (you posted in the server edition forum) or a parallel job question (you marked the job type as parallel)? Merge stage in the two different editions performs radically different tasks. Why are you insisting particularly on the Merge stage anyway? It's almost certainly not the correct stage type to choose in either edition.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not a job for the Merge stage, all you need is 'normal' lookup logic to determine inserts versus updates.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply