NVL Function support for parallel Oracle Stage

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
venkatvelpula
Participant
Posts: 80
Joined: Sat Mar 18, 2006 10:27 pm

NVL Function support for parallel Oracle Stage

Post by venkatvelpula »

I am trying to retrieve decimal fields using user defined sql thorugh oracle enterprise stage. I am trying to replace decimal field null values to '0'.

The query working fine without NVl Function but it's not working with NVL.

Let me know the possible solutions.

We have to do it through oracle query only.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Could you post your SQL, please?
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

.. And let us know, what you mean by "not working". Does it throw an error? Or does it give you some unexpected output?
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>
iDomz
Participant
Posts: 81
Joined: Wed Jul 25, 2007 5:25 am
Location: London

Post by iDomz »

On version 8, I had to cast the output (as number) while using enterprise stage. Something like
CAST(NVL(YourColumn,0) AS NUMBER(24,7)) as YourColumn
in your query
Post Reply