Resolution:
Recode your program so that each EXEC has a closing END-EXEC before the next EXEC, then recompile.