Message Oracle PCC-00012 - Not in a declare section at line number in file string

ERRORNot in a declare section at line number in file string
CAUSEAn END DECLARE SECTION statement without a matching BEGIN DECLARE SECTION statement was found. Either the BEGIN DECLARE SECTION statement is missing or misspelled or the END DECLARE SECTION statement is an extra.
ACTIONAdd or correct the BEGIN DECLARE SECTION statement or remove the extra END DECLARE SECTION statement.