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

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