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: 687
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: 2442
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: 687
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: 1817
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 Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts How to create issuer certificate? :'( vasanthz All Other Mainframe Topics 0 Sat Nov 18, 2017 5:14 am
No new posts Task initiating SSHD vasanthz All Other Mainframe Topics 0 Tue Nov 14, 2017 3:03 am
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm

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