Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How do I create a mainframe monitoring task?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
anjali.bisht

New User


Joined: 09 Aug 2007
Posts: 7
Location: India

PostPosted: Fri Sep 01, 2017 2:20 pm    Post subject: How do I create a mainframe monitoring task?
Reply with quote

So, this is just a design idea for my mainframe based project and I need help on how to make this work technically

I am trying to come up with a technical design for a service which monitors a DB2 table for a change (could be an update / insert) and accordingly initiates another service for further processing.

In case there is no update found, the service should sleep for x amount of time and then check the database again.
Back to top
View user's profile Send private message

daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 715
Location: Pennsylvania

PostPosted: Fri Sep 01, 2017 4:47 pm    Post subject:
Reply with quote

You should create a DB2 Trigger.

Triggers are designed to do exactly what you are looking for.

Since triggers were designed correctly, they do not have this 'sleep' function which is a waste of resources.

Triggers detect the update/insert as soon as it happens and perform a task.

Read all about it:
https://www.ibm.com/support/knowledgecenter/en/SSEPEK_10.0.0/intro/src/tpc/db2z_triggers.html

fixed
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2454
Location: Netherlands, Amstelveen

PostPosted: Fri Sep 01, 2017 5:38 pm    Post subject:
Reply with quote

daveporcelan

Your link is not good.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 715
Location: Pennsylvania

PostPosted: Fri Sep 01, 2017 6:17 pm    Post subject:
Reply with quote

I am real bad at the link thing.

I searched on DB2 Trigger.

I came up with this maybe it is better.

https://www.ibm.com/support/knowledgecenter/en/SSEPEK_10.0.0/intro/src/tpc/db2z_triggers.html
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1938
Location: NY,USA

PostPosted: Fri Sep 01, 2017 8:27 pm    Post subject:
Reply with quote

Quote:
and accordingly initiates another service for further processing.
Please explain further, what is the service here?
Why have not yet consulted with your own DBA's on this?
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 Looking for immediate Job in mainfram... Chandan1993 Mainframe Jobs 0 Sun Jul 08, 2018 10:19 am
No new posts Dynamically updating the MQ monitorin... Anilkumarmq Java & MQSeries 0 Fri Jun 08, 2018 2:05 pm
No new posts Transfer of mainframe file to PC in Z... maxsubrat JCL & VSAM 4 Thu May 17, 2018 11:35 am
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Job monitoring request Mani453 JCL & VSAM 4 Thu Mar 29, 2018 12:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us