Records are rejected which have Null Values for ints & D

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
hari_marthala
Participant
Posts: 6
Joined: Mon Jul 05, 2010 1:09 am
Location: Hyderabad

Records are rejected which have Null Values for ints & D

Post by hari_marthala »

Hi,

Can anybody help me in resolving my issue which is mentioned below,

Issue:- My source is sequential file with integer and date fields as nullable, but the records are getting rejected as it contains NULL values from source even though i had given "Null Field Value" as blank('' ie; just single quotes one after another).

Is there any other option to read null values in integer and date fields which are nullable from source
rjdickson
Participant
Posts: 378
Joined: Mon Jun 16, 2003 5:28 am
Location: Chicago, USA
Contact:

Post by rjdickson »

'' (an empty string) is neither a valid numeric, nor a valid date. Try setting the 'null field value' to something valid for each column (i.e. set the integer column default value to 0, etc).
Regards,
Robert
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What does the source actually put into those fields to represent NULL? That's what you must have as the Null Field Value property.

If they are actually empty, try using double quotes rather than single quotes for Null Field Value.

If you have a fixed-width format, however, you need the Null Field Value to have the same number of characters (probably all space characters) as the field in question.
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