Reject From DRS stage.

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
dhelsley
Participant
Posts: 9
Joined: Thu Jan 05, 2006 9:23 am

Reject From DRS stage.

Post by dhelsley »

I am using a DRS stage to insert into MSSQL table via an ODBC connection. When a duplicate is encountered I expect the "reject" link from the transform feeding the DRS stage to trigger if the insert fails but it does not. In fact the job log does not even show an error.

If I replace the DRS stage with an ODBC stage everything works as expected.

Is this an issue with the DRS stage?

Thanks.
Dave
thumsup9
Charter Member
Charter Member
Posts: 168
Joined: Fri Feb 18, 2005 11:29 am

Post by thumsup9 »

Whats your Array Size in DRS Input Stage
thumsup9
Charter Member
Charter Member
Posts: 168
Joined: Fri Feb 18, 2005 11:29 am

Post by thumsup9 »

I wanted to see if you can you write the rejected rows to a file. See if thats happening. Set the Array Size in DRS to 1.
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi
Are using "Insert new rows option" in Update action
Insert new rows only: Inserts the new rows in the table but
does not report duplicate rows to the log
dhelsley
Participant
Posts: 9
Joined: Thu Jan 05, 2006 9:23 am

Post by dhelsley »

BINGO.

Yes, I was using "Insert new rows only". Changing it to "Insert Rows without clearing" did the trick.

Thank you.

Also, array size is 1. I can't get them to reject to a file. That was the original problem.
Dave
Post Reply