Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Trigger a programme on encountering a particular message !!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Trigger a programme on encountering a particular message !!
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

Senior Member


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

PostPosted: Tue Aug 28, 2012 4:09 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Tue Aug 28, 2012 5:35 pm    Post subject:
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: 662
Location: Pennsylvania

PostPosted: Tue Aug 28, 2012 5:54 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Truncated error message after VERIFY ... David Sde TSO/ISPF 4 Mon Sep 05, 2016 11:26 pm
No new posts IEC999I MESSAGE ERROR Manshadi ABENDS & Debugging 3 Sun Apr 17, 2016 3:43 pm
No new posts How to track incoming input files tha... shreya19 JCL & VSAM 6 Thu Feb 25, 2016 6:15 pm
No new posts Issue in trigger vickey_dw DB2 3 Wed Feb 10, 2016 5:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us