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: 683
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: 2441
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: 683
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: 1788
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 Mainframe job Chandan1993 Mainframe Jobs 0 Sun Sep 24, 2017 1:06 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

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