Hi Guys,
I am new to Pentaho DI.I imported the following data from a csv file to Text File Input step.I need to do the following operations.
Case 1) If (Time=9999 and Day in (Saturday, Sunday)) and Approvedstatus=A
then StatusCode=1
Case 2) Time=9999 and Day in (Tuesday,Wednesday) and Approvedstatus=A then StatusCode=2 Else StatusCode=0
I need to do it all in a single step.Please help me out.
I am new to Pentaho DI.I imported the following data from a csv file to Text File Input step.I need to do the following operations.
Case 1) If (Time=9999 and Day in (Saturday, Sunday)) and Approvedstatus=A
then StatusCode=1
Case 2) Time=9999 and Day in (Tuesday,Wednesday) and Approvedstatus=A then StatusCode=2 Else StatusCode=0
Emplid |
Time |
Day |
ApprovedStatus |
Statuscode |
161022 |
99999 |
Saturday |
A |
|
161023 |
99999 |
Sunday |
A |
|
161024 |
99999 |
Monday |
A |
|
161023 |
99999 |
Tuesday |
A |
|
161024 |
99999 |
Wednesday |
A |
|
161025 |
145698 |
Wednesday |
L |
|