MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SQL Stored Procedure on OS/390

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Jai
Beginner


Joined: 06 Jun 2003
Posts: 57
Topics: 20

PostPosted: Wed Dec 31, 2003 1:03 am    Post subject: SQL Stored Procedure on OS/390 Reply with quote

Hi Friends,

Please let me know is it necessary to drop the Global Temporary Table(GTT). Logically it should delete the GTT as soon as SP call is over and also we have given on commit delete rows. So it should drop at that time when we call from Java.
But here in our we have to make it a explicity by the statement drop table session.<gttname>.
It is working fine here. But for moving it to Production, we need to move it to Changeman and then to Production. But Changeman is not accepting the DROP Procedure while Staging. So Please suggest me the Possible solution for that.

Thanks in advance.
_________________
Have a Great Day.
Thanks & Regards,
Jai
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Dec 31, 2003 6:26 am    Post subject: Reply with quote

Jai,

After you execute a DECLARE GLOBAL TEMPORARY TABLE statement, the definition of the declared temporary table exists as long as the application process runs.. After your application is completed the temporary table is dropped automatically. If you really need to delete the definition before the application process completes, you can do that with the DROP TABLE statement.

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group