The terminating END SELECT keywords are missing from a SELECT CASE statement.