PDR4018S
Section, Line number, Column number: Invalid start of SELECT statement.
What happened: An error was encountered in the start of a SELECT statement: SELECT CASE value-expression
.
What to do: Inspect the first line of your SELECT statement for invalid syntax, possibly a missing CASE keyword.