SetNull with decimal fields

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
saxena_richa
Participant
Posts: 24
Joined: Mon Apr 24, 2006 3:34 am
Location: USA

SetNull with decimal fields

Post by saxena_richa »

Hi,
I want to put Null into database for a particular decimal column if I dont get any value from source.
But when I try to use the SetNull function , I get the followin error:-

value larger than specified precision allowed for this column

Need help to understand why I get this error and also the workaround for this.

The target is oracle database and source is a flat file.
Thanks
Richa
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

You can try changing the datatype in the oracle stage to a varchar and pass an empty string for NULLs.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply