ERROR | SQL statement found outside the body of a function |
CAUSE | A SQL statement other than a declarative, datatype equivalence or WHENEVER statement was found outside the body of a function when PARSE=FULL. |
ACTION | Move the SQL statement inside the body of a function. |