MFPLI00489E An END statement needs to be supplied to close a previous DO, SELECT, BEGIN, or PROCEDURE statement; compiler option -nomulticlose is in effect.

Compiler option -nomulticlose (default) prohibits multiple closure of groups (automatic insertion of END statements).
Resolution:
Supply the missing END statements or use complier option -multiclose (this option is not recommended!).
Module:
PASS1.PL1