Oracle Stage Truncate & load

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
vick
Participant
Posts: 88
Joined: Sun Oct 30, 2005 2:06 am

Oracle Stage Truncate & load

Post by vick »

Hi,

Is it possible to truncate and load the table in the same job.

This is the design I have now. I have the load option selected in the Oracle Enterprise Stage. I truncate the table through TOAD before I load.

Code: Select all


Seq_File---------->BusinessRules--------->Oracle_table

How can I include the truncate option in the same design?

TIA
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You can provide the truncate command in OPEN command. Its synonymous to before sql in OCI stage.
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 »

Set the Write method to Load and the Write mode to Truncate.
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