Here's some more details.
Again, trying to create a package....
/* Creation of a temp table to store values being processed */
CREATE GLOBAL TEMPORARY TABLE DataChecks
(STUDY_ID VARCHAR2(35), local_case_number VARCHAR2(100),
checkdetail VARCHAR2(250), CheckID VARCHAR2(5))
on commit preserve rows
/* Processing logic (Inserts, Updates, etc. on the temp table */
INSERT INTO DataChecks ('ARV','US-0001','Check 1','0001');
INSERT INTO DataChecks ('ARV','US-0001','Check 2','0002');
INSERT INTO DataChecks ('ARV','US-0001','Check 3','0003');
INSERT INTO DataChecks ('ARV','US-0001','Check 4','0004');
/* Retrieve the end results */
SELECT * FROM DataChecks;
/* Drop the temp table */
DROP TABLE DataChecks;
Getting this error:
Error: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge
<a single-quoted SQL string> pipe
Line: 5
Text: CREATE GLOBAL TEMPORARY TABLE DataChecks(STUDY_ID VARCHAR2(35), local_case_number VARCHAR2(100), checkdetail VARCHAR2(250), CheckID VARCHAR2(5)) on commit preserve rows;