View previous topic :: View next topic
|
Author |
Message |
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
It is always good to eliminate from a discussion irrelevant matters.
Why would it matter who wrote the program? |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
mjadwani2785
New User
Joined: 28 Apr 2009 Posts: 89 Location: Noida , Dublin
|
|
|
|
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 |
|
|
|