Delete statement in DRS Stage for Oracle database

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
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Delete statement in DRS Stage for Oracle database

Post by nani0907 »

Hi,

Iam using the DRS stage for delete and insert process to oracle table with update action as "Insert New rows Only" .In before tab , i need to delete based upon the incoming values . Is it possible in DRS stage. When i mention harcoded values ,it works properly.Please let me know how to delete based upon incoming values.
thanks n regards
nani
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It is not possible to leverage any incoming row data in the 'before' or 'after' SQL tabs.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You would need two jobs to achieve this or, perhaps, user-defined SQL to call a stored procedure.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

Thanks ray..
thanks n regards
nani
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It's important to understand here that those areas are only executed once, not per row - hence their name and the problem.
-craig

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