You should check around lines 1027 and 1042, it looks like you've forgotten an END LOOP or an END IF or perhaps just an END or something like that.
2:38:46 PM 1027/1 PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following: 2:38:46 PM begin case declare else elsif end exit for goto if loop mod 2:38:46 PM null pragma raise return select update while with 2:38:46 PM <an identifier> 2:38:46 PM << close current delete fetch lock insert 2:38:46 PM open rollback savepoint set sql execute commit forall merge 2:38:46 PM pipe 2:38:46 PM 1042/4 PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: 2:38:46 PM end not pragma final instantiable order overriding static 2:38:46 PM member constructor map
Please stop doing that. Your code will break or corrupt your data sooner or later.
EXCEPTION WHEN OTHERS THEN NULL;