This is what I've found so far:
DECLARE GLOBAL TEMPORARY TABLE SLDETAIL
(
structure varchar(3),
entry varchar(6),
sequencer decimal(3),
amount decimal,
risk decimal
) not logged on commit preserve rows IN USER_TEMP_TABLES;
doesn't work, even though it is part of the syntax.
DB2 asks for the properly qualified reference to USER_TEMP_TABLES, but I cant' figure out what that is.
also, the docs say to 'issue this statement' before running the create proc:
CREATE USER TEMPORARY TABLESPACE ts1
MANAGED BY SYSTEM USING ('ts1file');
so it's still running (3min) I don't know what it's doing... actually it's a 90% at 5 minutes.
What I need to do is create a 'permanent' temporary user tablespace to be used by all the users logging into db2 to run this stored proc.
any help out there? I'm dyin here...
Thanks,
Kimball