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

can a trigger be used to call a stored proc


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
banuradha

New User


Joined: 20 Dec 2006
Posts: 19
Location: India

PostPosted: Thu Feb 15, 2007 5:36 pm
Reply with quote

Hi ,

Is that possible to call a stored proc by using a trigger ?

can we set off trigger for some time and set it when needed?
Back to top
View user's profile Send private message
mano

New User


Joined: 23 Mar 2006
Posts: 17
Location: chennai

PostPosted: Tue Jul 17, 2007 12:05 pm
Reply with quote

Yes we can can call a stored procedure using a trigger
find below trigger statement for calling trigger

CREATE TRIGGER XX.XXYYYYRG
AFTER INSERT ON XX.XX_TRANS_TABLE
REFERENCING NEW AS N
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
CALL XX.XX618SP();
END ?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts variable in library name within a PROC. JCL & VSAM 11
No new posts ADDRESS TSO CALL to invoke a module TSO/ISPF 7
No new posts Starting a PROC with parameters from ... CLIST & REXX 6
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:


Back to Top