Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
[Article]Stored Procedures - DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
praba_jas

New User


Joined: 01 Apr 2005
Posts: 11

PostPosted: Tue Jul 26, 2005 6:06 pm    Post subject: Stored Procedures - DB2
Reply with quote

Hi,

Can anybody help me out with sample programs for db2 stored procedures written in cobol.
Already gone thru the forum.but not getting sample programs

Advanced Thanks,
J.Jasmine
Back to top
View user's profile Send private message
References
PostPosted: Tue Jul 26, 2005 6:06 pm    Post subject: Re: Stored Procedures - DB2 Reply with quote

habibullah_j

New User


Joined: 16 Mar 2006
Posts: 3

PostPosted: Fri Mar 17, 2006 3:38 pm    Post subject: Re: Stored Procedures - DB2
Reply with quote

Jasmine,
Cobol stored procedure is like ordinary cobol-DB2 program containg all the divisions such as Identification division, Data division and procedure division. You have to compile it and then build. we are using changeman to do this. Suppose if your SP have to return more than one row then you have to declare a cursor and open it, no need of fetching.
I dont know how you are going to call this SP but if you want to pass some values to the sp then you have to use Linkage section.
Kindly revert it back if there is any issues..

cheers,
habib...
pune.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1