View previous topic :: View next topic |
Author |
Message |
Prosenjit2 Beginner
Joined: 02 Mar 2005 Posts: 13 Topics: 8 Location: India
|
Posted: Wed May 04, 2005 6:18 am Post subject: DB2 stored procedure |
|
|
is it possible to call a DB2 stored procedure from another DB2 stored procedure?
If yes then Please give some examples.. |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Wed May 04, 2005 7:28 am Post subject: |
|
|
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 |
|
|
s_shivaraj Beginner
Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Wed May 04, 2005 11:06 pm Post subject: |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Thu May 05, 2005 9:01 am Post subject: |
|
|
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 |
|
|
|
|