returning failed record and feild

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
enigmatic28
Participant
Posts: 13
Joined: Thu Jan 03, 2008 7:54 pm

returning failed record and feild

Post by enigmatic28 »

Hi,

does datastage 7x have a functionality to return or write to a file the records that failed and the name of the column that failed with out using a transformer in the designer for validation?

lets say I have 1000 records having 10 columns, record number 50 failed in column 5..

can datastage write that in a sequential file or can the director be set to display the said information?


thanks...
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Yes, DataStage PX/EE does this by having the designer put a "reject" link out of the passive output stage. For databases this will contain the SQL error code but in neither case does it explicitly tell you which column caused the reject.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The log will contain any error message generated by the database server. This may or may not contain the name of a column. It may, for example, contain the name of the constraint that was violated. It's then up to you to examing the column values (also logged) to determine which value(s) caused the problem.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
enigmatic28
Participant
Posts: 13
Joined: Thu Jan 03, 2008 7:54 pm

Post by enigmatic28 »

Hi,

Will that also tell what column has made the record fail?

thanks...
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

ray.wurlod wrote:...This may or may not contain the name of a column...
enigmatic28
Participant
Posts: 13
Joined: Thu Jan 03, 2008 7:54 pm

Post by enigmatic28 »

Thanks for all that replied....
Post Reply