I have an If Statement block similar to the below which is failing with the error - PLS-00103: Encountered the symbol \"SELECT\" when expecting one of the following....
Have you called DBMS_OUTPUT.ENABLE
Quick example
BEGIN DBMS_OUTPUT.DISABLE; DBMS_OUTPUT.PUT_LINE('Disabled'); DBMS_OUTPUT.ENABLE; DBMS_OUTPUT.PUT_LINE('Enabled'); END;