In my RPG work I have been using the IF-ELSEIF operations code instead of Select groups for longer than I have been writing this web site. I preferred them as I could do the same as a Select operation code in less lines of code.
But then comes along two new RPG operation codes in the latest Technology Refreshes, IBM i 7.5 TR2 and 7.4 TR8, that are related to the Select operation code that might change my mind.
The two new RPG operation codes are:
WHEN-IS: Used to compare the given value is equal to a value or variable
WHEN-IN: Used to compare the given value is in a list or values, array, or in a range
Read more » Read More