Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi - I have a problem in applying the if/else condition in tMap. I am trying to do below validations in tMap.
if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 40) 'AA'
else if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 45) 'X3'
else if (in.stop_seq == 1 && in.message_status == 10 && in.message_type == 50) 'AF'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 40) 'AB'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 45) 'X1'
else if (in.stop_seq == 2 && in.message_status == 10 && in.message_type == 50) 'CD'
My source is a db2 and trying to populate a output filed based on this condition. As am new to this, tried all possible options but didn't work. Could you please help?
Note:In my screenshot attached, i tried with one input value to check and populate the target.
Thanks in advance!!!
Hi Sabrina & Umesh,
I have situation ,
I have column which should have only TRUE & FALSE as values but for some records this column having other (1, yes, no...) & null also,
so i want to filter out those records which has other value for this column & i want to put FALSE instead of null only for this column
& if this column is not TRUE or FALSE or Null then it should print as "Value is Different"... plz see below Table for your reference .This is my source data...
ID BL_Values
1 TRUE
2 FALSE
3 12
4 Yes
5 TRUE
6 TRUE
7 FALSE
8 FALSE
9
10