How to load a DB2 table with Dummy?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Titto
Participant
Posts: 148
Joined: Tue Jun 21, 2005 7:49 am

How to load a DB2 table with Dummy?

Post by Titto »

Hi,

How to load a DB2 table with Dummy?
I need to clean up the table before inserting new rows. Yes there is an option in DB2 stage " Clean the table, then insert rows" but i need to use "User defined Insert statement" for my requirement. I tried with DELETE statement then INSERT statement in same stage but it is not inserting the rows what process has to. So, I want to dummy/clean out the table before my process then insert rows at end of the process.

Or are they any methods!
Any help appreciated!

~T
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Issue the delete statement in the Before SQL tab of the DB2 stage, then the delete statement would get executed before inserting any rows.

HTWH.

Regards
Saravanan
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Plus you need to put the COMMIT if the transaction paramters are not set

Regards
Sreeni
Post Reply