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
mail2krishna79
Charter Member
Posts: 56 Joined: Fri Apr 21, 2006 9:53 am
Post
by mail2krishna79 » Tue Apr 19, 2011 1:10 pm
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
Posts: 1274 Joined: Sun Nov 14, 2004 8:50 pm
Contact:
Post
by jwiles » Tue Apr 19, 2011 1:56 pm
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 » Wed Apr 20, 2011 12:13 pm
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
Post
by ajay.vaidyanathan » Wed Apr 20, 2011 1:24 pm
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
Posts: 892 Joined: Thu Oct 16, 2003 5:18 am
Post
by Sreenivasulu » Thu Apr 21, 2011 12:46 am
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
Posts: 730 Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore
Post
by zulfi123786 » Thu Apr 21, 2011 1:53 am
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()