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 

Is Package executable?

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


Joined: 13 Jan 2006
Posts: 20
Topics: 10

PostPosted: Thu Oct 13, 2011 1:37 pm    Post subject: Is Package executable? Reply with quote

We have a stored procedure which calls a few subroutines. The subroutines & the stored proc have DB2 and they are all bound as packages.

None, including the stored proc, are plans.

I am able to execute the stored procedure fine. What am I missing?
Back to top
View user's profile Send private message
drammo
Beginner


Joined: 13 Jan 2006
Posts: 20
Topics: 10

PostPosted: Thu Oct 13, 2011 2:28 pm    Post subject: Reply with quote

Found answer in the manuals

Quote:
If the stored procedure contains SQL statements, you must process them like they are in any
other SQL application program through the DB2 pre-compiler or the SQL statement
co-processor, and you must bind the resulting DBRM into a package. It does not require a
plan since it runs under the thread for the calling application
.


Quote:
Packages must exist in collections. During execution, DB2 always requires a plan that has
established a connection to DB2. Except for packages such as triggers, stored procedures,
and distributed applications, packages must belong to a plan.

Back to top
View user's profile Send private message
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