How to write bad dates (contains alpha) to a reject table

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
ds2010
Participant
Posts: 1
Joined: Thu Aug 19, 2010 6:53 am

How to write bad dates (contains alpha) to a reject table

Post by ds2010 »

Hi Everyone,

I am new to DS and is in need of help on how to write a record with incorrect dates (contain alpha) in DS to a reject table without having a lookup table to reference.

From what I have read one way to write to a reject table is by having lookup file set pointing to a source with lookup values. However, in this case we are dealing with dates and we do not have a time dimension or any source that we can use for lookup. I hope I am explaining it right. Thanks in advance for your help!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Check out the use of the IsValid() function, it can be used for various data types including dates.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You would use the IsValid() function in a Transformer stage that has two outputs, one for times when the record is in some way invalid. This would server as your link to your rejects table.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply