IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Execution of Stored Procedure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu Jun 23, 2005 7:27 pm
Reply with quote

Hi all,
Can anyone please help me out how to execute DB2 stored procedure through cobol program? What are the prerequisite for the same?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jun 23, 2005 7:32 pm
Reply with quote

Hi Kanak,

Whether it helps you ?

http://www.ibmmainframes.com/viewtopic.php?t=1669

Regards,

Priyesh.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu Jun 23, 2005 7:57 pm
Reply with quote

hey priyesh thanks for your quick reply...but it didn't solved my problem.
If you don't mind can you please send me one sample piece of code like how it is being called by passing some value as input to the procedure and how to receive the the output from that procedure. If possible can you send me the JCL for the same also.

Thanks in advance a lot.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 23, 2005 9:09 pm
Reply with quote

Hi Kanak, after a search in the web I found this link:
http://www.it.ufl.edu/projects/directory/programming/ex-cobol.shtml
that explain in Cobol Code how you can call a stored procedure already defined in DB2.
I hope in this help becuse I never tested it. If it's not what you are looking for I will try to help you with a new search... I can't do anymore...

P.S.= this is the link from IBM Inf. Man. Sw.:
http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/ad/samples/mfcobol/s-inpsrv-sqb.htm
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Jun 24, 2005 10:03 am
Reply with quote

hi MGIndaco.
good morning..Thanks for ur co-operation and reply..will let you know if i have anyother doubt. Thanks once again.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top