How to handle the null values

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
Sridhar Sivakoti
Participant
Posts: 35
Joined: Tue Feb 13, 2007 5:30 am

How to handle the null values

Post by Sridhar Sivakoti »

Hi,

I have designed a job, In which one column is defined as Varchar in source and target(Both are SQL Server tables). Source table contains Null values for this column.I have taken in source and target this column metadata Nullable option as YES.When I am running this job this record is dropping at transformer, even I used Null handling functions like NullToZero and NullToValue.

I am getting below warning and records are dropping.

APT_CombinedOperatorController,0: Field 'DMA_CODE' from input dataset '0' is NULL. Record dropped.

Please help on this.

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

Post by ArndW »

Although this is a topic that has seen a lot of posts, I'll make a stab at an answer. Somewhere in your stage you are using DMA_CODE without having handled nulls. Remember, this also includes use of constraints.
Post Reply