delete and load in odbc

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
smohd1338
Premium Member
Premium Member
Posts: 28
Joined: Fri Aug 03, 2012 1:09 pm

delete and load in odbc

Post by smohd1338 »

hi,

I have this scenario where i will get a file and will load into table, this job runs daily, everyday when it loads it has to delete all old data,completely erase andinser only new reords. i gave "delete and insert" , that doesnt seem to work? how shall this be acheived?
sameer
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could use Before/SQL to issue a DELETE statement (or even TRUNCATE if the database supports that).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
aartlett
Charter Member
Charter Member
Posts: 152
Joined: Fri Apr 23, 2004 6:44 pm
Location: Australia

Post by aartlett »

And you could use File Schema Files and RCP to make a generic job and correct parameters to have 1 generic job to support this.

:) I just finished doing this for 15 files in, and using SQL in a file handled a generic delta load for updates and deletes.
Andrew

Think outside the Datastage you work in.

There is no True Way, but there are true ways.
Post Reply