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 

DB2 stored procedure

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


Joined: 02 Mar 2005
Posts: 13
Topics: 8
Location: India

PostPosted: Wed May 04, 2005 6:18 am    Post subject: DB2 stored procedure Reply with quote

is it possible to call a DB2 stored procedure from another DB2 stored procedure?

If yes then Please give some examples..
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed May 04, 2005 7:28 am    Post subject: Reply with quote

prosenjit2,
Answer is yes. Make sure what is a "Call". You may use the regular cobol call and it would be treated as such. If you use "EXEC SQL CALL" then its a Nested Stored procedure and executes in its allocated address space. Thanks
Back to top
View user's profile Send private message
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Wed May 04, 2005 11:06 pm    Post subject: Reply with quote

SureshKumar,

Just check this Link ,Stored Procedure Link its shows that is not possible in version 4 and 5 to call another stored proc from a stored proc, r u refrerring to version above 5 ?.

Text in the Link
In DB2 Version 4 or DB2 Version 5, a stored procedure cannot use the SQL CALL statement to invoke another stored procedure.
_________________
Cheers
Sivaraj S

'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'
Back to top
View user's profile Send private message AIM Address
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Thu May 05, 2005 9:01 am    Post subject: Reply with quote

s_shivaraj,
My mistake, its for version 6 and above. I was assuming people are out of these version 4/5 by now, probably not. Thanks for pointing out.
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