At the beginning of a query that involves creating temp tables, a script is added to drop the temp table if it already exists:
BEGIN EXECUTE IMMEDIATE 'DROP TABLE SCHEMA1.TMP_TABLENAME';
EXCEPTION WHEN OTHERS THEN NULL; END;
There are no issues if running this query alone in Toad 4.2, but as an automation Tas file, it runs into an error:
ORA-06550: line 2, column 36:
PLS-00103: Encountered the symbol "end-of-file"