Db2 Connector 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
nansekar
Participant
Posts: 29
Joined: Mon Nov 03, 2008 6:23 am

Db2 Connector Stage

Post by nansekar »

Hello

I have a DB2 connector stage as my target , its a simple Dataset to table load,
and i have the options as
Write mode: BulkLoad
Table Action : Append
Before/AfterSQL: No
Load Control :
LoadMode:Insert
Bulk Load with LOB or XML Columns : Yes

But for each run the table is getting truncated and loaded.

I have tried the other options also, For these options also its getting truncated and load
Write mode: BulkLoad
Table Action : Append
Before/AfterSQL: No
Load Control :
LoadMode:Replace
Bulk Load with LOB or XML Columns : Yes



Does Bulkload option in DB2 connector always Truncates and Load even if table action is Append and Load method is Insert ?
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Re: Db2 Connector Stage

Post by soumya5891 »

Here table action you mentioned as Append. So the new records will be loaded into the table. No truncation will be occurred here.

If you mention table action is truncate then it will truncate the table then load
Soumya
nansekar
Participant
Posts: 29
Joined: Mon Nov 03, 2008 6:23 am

Re: Db2 Connector Stage

Post by nansekar »

Yeah, But for the scenario where table action is append , write mode is Bulk Load and Load mode is replace, performs the similar opertaion as truncate and Load .
Why it happens like this.. what are the advantages of using this method instaed of truncate and load.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If things are working as you are saying, seems to me you should contact your official support provider and ask them the why of that.
-craig

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