MPLIE00016S END statement encountered when there are no open groups/blocks.

There is an END statement that does not correspond to an open DO or SELECT group, PROCEDURE or BEGIN block.
Resolution:
Remove the end statement or supply the missing DO, SELECT, PROCEDURE or BEGIN statement.
Module:
MPLIEXEC.PLI