RPG – SELECT WHEN

SELECT WHEN is used to define conditions for when groups of operation should be performed or not.ENDSL or END is used to close a SELECT statement. Multiple WHEN groups can be defined. OTHER is used in combination with SELECT and WHEN to define what should be done if the previous conditions have not been met.  […]