MPLIE00045S Physical end of file reached before logical end. An END statement may be missing.

Physical end of file reached before END statements have been encountered for all PROCEDURE and BEGIN blocks, or DO and SELECT groups.
Resolution:
Check that all PROCEDURE, BEGIN, DO and SELECT statements have a corresponding END statement.
Module:
MPLIEXEC.PLI