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

stored procedures in db2.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts user exits in Column Map procedures IBM Tools 0
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top