View previous topic :: View next topic
|
Author |
Message |
ugna04@yahoo.com
New User
Joined: 25 Sep 2005 Posts: 3
|
|
|
|
can i write stored procedures in db2 if yes please explain how? |
|
Back to top |
|
|
ugna04@yahoo.com
New User
Joined: 25 Sep 2005 Posts: 3
|
|
|
|
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 |
|
|
itzDeepak
New User
Joined: 06 Sep 2005 Posts: 12
|
|
|
|
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 |
|
|
|