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

Trigger a programme on encountering a particular message !!


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Tue Aug 28, 2012 3:42 pm
Reply with quote

Hi ,

Just wanted to know if it is possible to trigger user written program on the encounter of particular message .

For eg ABC123 message appeared in DB2 logs now I want to take particular action as soon as this message appears . Is this possible ?

Automation tools can do it . I know. Can it be done using any other way something existing in the system we can utilize to trigger codes .

Regards,
Manoj K Jadwani
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 28, 2012 4:09 pm
Reply with quote

A little more imformation needed from you - are you talking about DB2 triggers as you talk about DB2 logs; but your post is in "Other Mainframe Topics" so that's confusing?

And what exactly you mean by "trigger a code" - did you mean a batch program execution or some execution of some online transaction?
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Tue Aug 28, 2012 4:14 pm
Reply with quote

Its just a general question . Just citing a example using DB2 address space logs.

For eg in a DB2 address space suppose DSNT501I message appears and now I want to trigger a mail (program) to users email id . Is this possible .

Trigger is general not DB2 triggers .

Regards,
Manoj K Jadwani.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Tue Aug 28, 2012 5:35 pm
Reply with quote

It is always good to eliminate from a discussion irrelevant matters.

Why would it matter who wrote the program?
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Tue Aug 28, 2012 5:54 pm
Reply with quote

CA/OPS would be the easiest, but that is an automation tool.

I guess you could do it with a Batch SDSF script.

You would need to 'trigger' that, let's say every five minutes, to search for your string.

This would not be very efficient, and a waste of system resources.

So, to answer a general question with a general answer: Yes, but at what price.
Back to top
View user's profile Send private message
mjadwani2785

New User


Joined: 28 Apr 2009
Posts: 89
Location: Noida , Dublin

PostPosted: Tue Aug 28, 2012 6:06 pm
Reply with quote

Thanks Dave !!

I thought the same . Through a timely scheduled batch script .
But as you said waste of system resources and plus we will miss the event as soon as it happens .

I was thinking are there any data areas which are specifically used to hold messages . Now as soon as the particular message comes to this data area a program will be triggered .

By general question I mean its related to Other Mainframe Topics Discussion . :-)

Regards,
Manoj K Jadwani
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
No new posts How to get the message id thats trigg... Java & MQSeries 0
Search our Forums:

Back to Top