DB2/UDB API Reject Link
Posted: Wed Feb 21, 2007 12:55 pm
I have searched and read all articles related to this, even the Leakage article and still I can't find an example on how to capture rejects due to duplicate entries.
As I am still learning the product, I can't find any good examples on how to set this rejectlogic up. I create a test job where I read from one DB2 Table and try to insert it into another that contain the same records. This will cause a duplicate. I used the tranformer stage but I am not sure what I need to do. Is there a constraint I must add or something. I am not sure if I am suppose to capture the SQLSTATE = 23505... etc. I agrre that there is alot of posts on this but none really clearly state how to accomplish this problem.
Could someone please shed some more light on this. Maybe it will decrease the amount of posts that have been written on the subject.
Thanks.
As I am still learning the product, I can't find any good examples on how to set this rejectlogic up. I create a test job where I read from one DB2 Table and try to insert it into another that contain the same records. This will cause a duplicate. I used the tranformer stage but I am not sure what I need to do. Is there a constraint I must add or something. I am not sure if I am suppose to capture the SQLSTATE = 23505... etc. I agrre that there is alot of posts on this but none really clearly state how to accomplish this problem.
Could someone please shed some more light on this. Maybe it will decrease the amount of posts that have been written on the subject.
Thanks.