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

Email-trigger from IMSDC screen.


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Sat May 14, 2011 1:02 am
Reply with quote

Hi,

I have a requirement like,
I do have an IMS screen from where user entries are stored into a DB2 table.
Now I need to send an e-mail notification to the user if something has been done on the screen which affects the DB2 table entries ie) if it is updated inserted or deleted.
I can do this in batch process but I would like to know if there is a way in online to identify whenever an user has changed some info on the IMS screen which in turn affects the DB2 table so that with that identification I can send him email spontaneously.

Please do let me know if there is a way.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat May 14, 2011 10:07 am
Reply with quote

Why not just send a message back to the terminal?
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Mon May 30, 2011 3:59 pm
Reply with quote

I cant do that because my requirement is to send an-email to receipients when a particular transaction happens in IMSDC online system.
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Mon May 30, 2011 5:43 pm
Reply with quote

I would just need to know if i can trigger a batch job from a IMS DC program in order to send the e-mails. I knew its possible in CICS but i am trying to find out if i can do it with IMSDC.

Plz help me out if anybody has some idea on it.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Mon May 30, 2011 9:35 pm
Reply with quote

One way is to have the MPP issue a DB2 stored procedure call. IBM provides a sample DB2 stored procedure that can submit jobs.
Back to top
View user's profile Send private message
abdulrafi

Active User


Joined: 14 Sep 2009
Posts: 184
Location: Coimbatore

PostPosted: Tue May 31, 2011 2:01 pm
Reply with quote

Oh is it. Could you please let me know how it can be used. ?.
if you have material kind of do pass it on.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Tue May 31, 2011 5:42 pm
Reply with quote

Google is your friend.

Hint: SP name is DSNACCJS
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Tue Jun 28, 2011 2:15 pm
Reply with quote

In Db2 you can create triggers. "A trigger defines a set of actions executed executed in response to the event of an INSERT, UPDATE or DELETE operation on a specified table. When such an SQL operation is executed, the trigger is said to be activated. The trigger can be activated before the SQL operation or after it".

Refer-http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0007038.htm

This way you can define a trigger and decide what to do when the table is updated.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 28, 2011 7:43 pm
Reply with quote

Hello,

Why have you posted db2 trigger info when the question is about ims . . . icon_confused.gif

d
Back to top
View user's profile Send private message
itssreehere
Warnings : 1

New User


Joined: 10 Jan 2006
Posts: 65
Location: chennai

PostPosted: Wed Jun 29, 2011 12:58 pm
Reply with quote

Question is about an an IMS DC screen which insert/delete/update data in a DB2 table. And he wants to send the email whenever a modification happens to the DB2 table. I just suggested one of the easy ways to achieve the result.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jun 29, 2011 8:04 pm
Reply with quote

OK. My understanding was a bit different, but i believe i like yours better icon_smile.gif

d
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Wed Jun 29, 2011 9:01 pm
Reply with quote

I think you can also use the IMS Spooler API to send email, but I have never done it and can offer no advice.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts Data for newly added fields not displ... IMS DB/DC 6
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
Search our Forums:

Back to Top