IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How do I create a mainframe monitoring task?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 792
Location: Pennsylvania

PostPosted: Fri Sep 01, 2017 4:47 pm
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:
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Sep 01, 2017 5:38 pm
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: 792
Location: Pennsylvania

PostPosted: Fri Sep 01, 2017 6:17 pm
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.

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

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri Sep 01, 2017 8:27 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
Search our Forums:

Back to Top