capture the insert update records in oracle stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

capture the insert update records in oracle stage

Post by dnat »

HI,

I have 100 records in the input and i am doing an insert update in the target table. I want to capture the insert records and update records like we capture the reject records through the reject link. Is there a way?

Because i want to update the status as Y for all the successfully processed records in the source.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

Just write one Update statement in Close command property in same oracle stage.
Srinu Gadipudi
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

Post by dnat »

Is there a way to capture these records in a file or a dataset.
hamzaqk
Participant
Posts: 249
Joined: Tue Apr 17, 2007 5:50 am
Location: islamabad

Post by hamzaqk »

hmmm well i guess you have to do some extra processing and based on the key field, flag the records as 'U' and "I' and then filter them based on a constraint....
Teradata Certified Master V2R5
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I have no idea what you mean by 'capture' here. Are you saying you want to use an 'insert else update' action and then know which records were inserted versus updated? :? You can't.

Why not do this the right way and prequalify your data via lookup so you know which are which and each can be handled appropriately?
-craig

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