MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OS 390: Requirements to run DB2 stored procedures

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
dilip
Beginner


Joined: 08 Nov 2003
Posts: 7
Topics: 7
Location: india

PostPosted: Sat Nov 15, 2003 5:51 am    Post subject: OS 390: Requirements to run DB2 stored procedures Reply with quote

Hi,

Please clarify on the following:

1. Currently we are having OS/390 Ver 2.10 in our mainframe.

Does this version of os/390 provide support for DB2 stored
procedures.

2. Can I use procedural contructs (SUCH AS 'if', 'while', 'declare' and so
on) in the definition of trigger body as shown below :


CREATE TRIGGER MSSD_UPD
AFTER UPDATE ON MSG_STATUS_DIS
REFERENCING NEW AS N_ROW
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
DECLARE CTR INT;
SELECT COUNT(*)
INTO CTR
FROM MSG_STATUS_DIS;
IF CTR > 0 THEN
INSERT INTO MSG_STATUS_DIS
(MSSD_STATUS,MSSD_STATUS_TEXT)
VALUES
(N_ROW.MSSD_STATUS * 5,'NEW ERROR MESG2');
END#



Please help me out ...
_________________
Dilip T.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Sat Nov 15, 2003 11:09 am    Post subject: Reply with quote

Dilip,

I answered both of your questions a couple of day back.The answer to your first q can be found here

http://www.mvsforums.com/helpboards/viewtopic.php?t=1417

Once again to clarify, Support for stored procedures does not depend on your operating system, but purely depends on the version of your DB2. If you have DB2 V4 or higher you can run stored procedures.

For your second question check this topic.

http://www.mvsforums.com/helpboards/viewtopic.php?t=1416

Please don't ask the same question twice.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group