MFPLI00037W An END statement has been supplied to close a previous DO, SELECT, BEGIN, or PROCEDURE statement.

An END statement has specified the label on a previous DO or SELECT group, BEGIN or PROCEDURE block and one or more END statements have been supplied to close the intervening blocks or groups.
Resolution:
Supply matching END statements to avoid the message.
Module:
PASS1.PL1