Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

stored procedures in db2.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ugna04@yahoo.com

New User


Joined: 25 Sep 2005
Posts: 3

PostPosted: Sun Sep 25, 2005 8:39 pm    Post subject: stored procedures in db2.
Reply with quote

can i write stored procedures in db2 if yes please explain how?
Back to top
View user's profile Send private message

ugna04@yahoo.com

New User


Joined: 25 Sep 2005
Posts: 3

PostPosted: Sun Sep 25, 2005 8:43 pm    Post subject: cursor
Reply with quote

when the use of cursor reduces the performance of database is it really used in the development of software by the organizations ?
Back to top
View user's profile Send private message
itzDeepak

New User


Joined: 06 Sep 2005
Posts: 12

PostPosted: Wed Sep 28, 2005 11:56 am    Post subject: Re: stored procedures in db2.
Reply with quote

Following steps needs to followed to write a stored Proc in DB2:

1) You can write DB2 sPs using COBOL,Java etc..
In case of COBOL,define your input and output parameters
in the linkage section.
The pgm flow will be the same as any COBOL pgm except :
a) There will be no statements like 'STOP'
b) Usually Cursor is not fetched in the pgm,,it is just opened
to write result sets in SPAS[Stored Proc Addres Space]
or WLM.

2) Stored Proc Crete Statements should be done.

3) Stored Proc needs to be defined in DB2 catalog and OS 390 WLM[Work
Load Mgr]

Ur Stored Proc will be ready to Zoom !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us