IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New DB2/400 or DB2/iSeries question.
I know the "CREATE GLOBAL TEMPORARY TABLE" syntax, but suppose I want to create a temporary table in a stored procedure that lives only within that sp? What is the 400/iSeries syntax for doing so?

TIA.
bcnu,
Mikem

If you can read this, you are not the President.
New Re: DB2/400 or DB2/iSeries question.
What is this, moral COBOL?

IMAGINE WHIRLED PEAS.

CREATE GLOBAL TEMPORARY TABLE.

...

STOP.

END.
-drl
New Aren't GLOBAL TEMPORARY tables viewable to all connections?
I thought so. This is not the case? I want the table scoped to my sp only (i.e. so that it can be fired simultaneously by n-users. Is the trick just to name the temp tables uniquely so that it doesn't matter if they all can see each other)?

Thanks.
bcnu,
Mikem

If you can read this, you are not the President.
New The answer is NO. DB2/400 doesn't scope temp tables to sp's.
bcnu,
Mikem

Eine Leute. Eine Welt. Ein F\ufffdhrer.
(Just trying to be accepted in the New America)
New Are they session/user scoped?
     DB2/400 or DB2/iSeries question. - (mmoffitt) - (4)
         Re: DB2/400 or DB2/iSeries question. - (deSitter) - (3)
             Aren't GLOBAL TEMPORARY tables viewable to all connections? - (mmoffitt) - (2)
                 The answer is NO. DB2/400 doesn't scope temp tables to sp's. -NT - (mmoffitt) - (1)
                     Are they session/user scoped? -NT - (ChrisR)

You've got a lot of repressed feelings, don't you?
81 ms