if then else

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
daniele
Participant
Posts: 14
Joined: Fri Oct 12, 2012 12:23 am

if then else

Post by daniele »

Hi I can use in only IF THEN END IF without else??

thanks
jerome_rajan
Premium Member
Premium Member
Posts: 376
Joined: Sat Jan 07, 2012 12:25 pm
Location: Piscataway

Post by jerome_rajan »

If you have nothing to do in the ELSE clause, you can code your logic like this.

Code: Select all

If col1=condition then action else col1
You will always have to tell Datastage 'if not then what' 8)
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn

Life is really simple, but we insist on making it complicated.
daniele
Participant
Posts: 14
Joined: Fri Oct 12, 2012 12:23 am

Post by daniele »

thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In an expression IF must have THEN and ELSE. There is no END IF.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

"There is no Dana, only Zuul."
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Post Reply