MFPLI00020S An IF, ON, DO, RETURN, LEAVE, or SELECT statement cannot be used as an on-unit.

An ON-unit can only be a single unlabeled simple statement or an unlabeled BEGIN block.
Resolution:
Put the statements in a BEGIN block.
Module:
PLSP1.TB