hi there,
i am not having much experience, but still .....
there is a SP sysproc.admin_cmd through which u can export, import, load data in the tables. But i suppose its available in db2 LUW Version 9.
db2 call sysproc.admin_cmd('export to c:\sales.del of del messages c:\export_sales.msg select * from sales')
db2 call sysproc.admin_cmd('import from c:\sales.del of del messages
c:\import_sales.msg insert into new_sales')
all exceptions will be stored in message files.
i think what u want to acheive can be easily acheived using set integrity command. but i havnt used it before and cant tell u how to use(u can even use exception tables there for all those insets that failed)
http://publib.boulder.ibm.com/infoce...n/r0000998.htm
Rahul Singh