Date Null Handling

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
phanee_k
Charter Member
Charter Member
Posts: 68
Joined: Thu Nov 20, 2003 11:02 pm

Date Null Handling

Post by phanee_k »

Hi,
How to Handle the nulls on date fields using Handle_Null in modify stage.

I tried

Run_date = Handle_Null(Run_Date,'')
and
Run_date = Handle_Null(Run_Date,'0')

But the job is getting aborted due to this.

Thanks,
Phani
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Try giving some low date.
0001-01-01. its a 'standard'

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

Post by ray.wurlod »

If it's a Date data type, then the replacement value must be a date. And this must match your date picture (for example "%yyyy-%mm-%dd").
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