Coalesce Function

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
mail2krishna79
Charter Member
Charter Member
Posts: 56
Joined: Fri Apr 21, 2006 9:53 am

Coalesce Function

Post by mail2krishna79 »

I can see Coalesce Function in Oracle 9i, Oracle 10g, Oracle 11g.

Is there any equal function in DataStge 8.1 or 8.5?
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

A very simple forum search on the term coalesce will answer your question.
- james wiles


All generalizations are false, including this one - Mark Twain.
soumya5891
Participant
Posts: 152
Joined: Mon Mar 07, 2011 6:16 am

Post by soumya5891 »

You can use null to value in a transformer stage or a modify stage
Soumya
ajay.vaidyanathan
Participant
Posts: 53
Joined: Fri Apr 18, 2008 8:13 am
Location: United States

Coalesce Function

Post by ajay.vaidyanathan »

You can use NullToValue() or NullToZero() in Transformer Stage or you can use NVL() at source DB Stage.

Your Choice

Regards,
Ajay
Regards
Ajay
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

coalesce takes the first notnull out of the input set of values. I think he is asking that sort of straighforward function in datastage ?

Regards
Sreeni
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Post by zulfi123786 »

A nested if then else would do.

If you dont want to see the nested if then else then enclose it in a routine to get a function like feel. all of this valid for more than one arguments, for one argument you have NullToValue()
Post Reply