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
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Null handling

Post by ketanshah123 »

Hi


How to handle nulls in sequential file?
How to handle any other invalid data in Sequential file?
How to handle nulls in date in transformer?

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

Post by ray.wurlod »

1. Specify how null is (or is to be) represented in the sequential file. If the format is fixed width, the null field value must have the same number of characters as the field's width.

2. Data that do not match the record schema can be captured on a reject link, or the row simply dropped, or the job aborted. This is configured through the Reject Mode property.

3. Make sure no function receives a null argument. Make sure that any column marked as "not nullable" does not receive a null value. Intercept null as early as possible (stage variables?) and convert to a known other value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSRajesh
Premium Member
Premium Member
Posts: 297
Joined: Mon Feb 05, 2007 10:37 pm

Post by DSRajesh »

Hi

You can handle null values for Date field in Transformer as:

Check first of all the null values exist with that field or not using ISNULL() then replace that value with some value what you want represent as like RAY said in stage variable and use that in the derivative Field of that column.
RD
Post Reply