problem with handling nulls with timestamp field

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
varshanswamy
Participant
Posts: 48
Joined: Thu Mar 11, 2004 10:32 pm

problem with handling nulls with timestamp field

Post by varshanswamy »

Hi,

I have a table which has a date column which can have a null value.
How do I use the modify stage to handle this the timestamp field.
and

regards,
varsha
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In the transitional definition don't specify that the target column is nullable, and handle the incoming null so that it is replaced with a default value (or dropped).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
varshanswamy
Participant
Posts: 48
Joined: Thu Mar 11, 2004 10:32 pm

Post by varshanswamy »

ray.wurlod wrote:In the transitional definition don't specify that the target column is nullable, and handle the incoming null so that it is replaced with a default value (or dropped).
Eloborating on this I have read it as a timestamp field in datastage and handled it in a transformer, but the transformer slows the performance so
I wanted to know how I could use modify stage to handle it, which I am unable to handle
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

Do a search on "handle_null" in this forum. A lot of examples have been discussed before.

HTH
Rich
bgs
Participant
Posts: 22
Joined: Sat Feb 05, 2005 9:43 pm

Post by bgs »

in the specification
<columnname> = handle_null(<columnname>,"<replacement value>")
Post Reply