In PDI/Kettle, I've found it tricky to set the value of one field based on the value of another field that is a different data type. A JavaScript
or Formula
step will do it, but in this case I think I'd use a Stream Lookup
because your lookup values are few and fixed.
Use a Data Grid
step with an Integer column for the month number (1, 2, 3 ...) and a string column with the month name (JAN, FEB, MAR ...). Use this step as the 'Lookup step' in your Stream Lookup
. Then just retrieve the month name into your data flow. This should be pretty fast, which is good if you're working with typical data warehouse volumes.