Reject from Oracle target

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
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Reject from Oracle target

Post by ankita »

Hi,

We are facing a problem while testing reject criteria from target ODBC stage.
Our job has a ODBC stage (used as Oracle target) and reject mode is on. It's rejecting the records properly when kept in 'Upsert' mode, but not rejecting any data to file when target is in 'Insert only' mode.
Testdata was prepared with Null in not Null field to test the reject handling.

Has anyone faced similar problem in latest version of DataStage ?
Please suggest.

Thanks,
Ankita
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

1) In 'Insert only' mode is the rejects property set to true?
2) With 'Insert only' mode and rejects is there any entry in the log about 'bad' file? It is generally created in the scratch disk with the rejected records.
Ping me if I am wrong...
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Post by ankita »

Yes, Reject criteria is ON in both the cases. When the job is run in 'Insert only' mode then 2 records are getting rejected as per job statistics, where 1000 records are supposed to be rejected.
Also not able to see these 2 records from unix, or view data.
Ankita
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

why those records need to be rejected, is it because of duplicate primary key.
Birendra
Post Reply