Search returned nothing for this, so I thought I'd ask. How does one do Nested If-Then-Else in a Transformer Stage for PX?
I am doing something like this:
If expr1 Then expr2 ELSE IF expr3 THEN expr4 ELSE expr5
of course, DataStage PX doesn't like that..
Nested If-Then-Else
Moderators: chulett, rschirm, roy
I didn't do it because I already corrected it with the correct usage of parentheses.chulett wrote:No, they don't. What does it actually say when you validate? And I don't believe I've ever seen an official grammar reference. Others may know. ...
They should really include the BNF for these functions somewhere
-
- Premium Member
- Posts: 892
- Joined: Thu Oct 16, 2003 5:18 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The original formulation, provided that all five expressions are well formed, is perfectly valid.
Validate expression, which Craig advised you to use, would have told you which of the five expressions was not well formed. Or at least the first of them that was not well formed. Lather, rinse and repeat.
Validate expression, which Craig advised you to use, would have told you which of the five expressions was not well formed. Or at least the first of them that was not well formed. Lather, rinse and repeat.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.