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

DB2 log alert on my mailbox


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jeevajeeva

New User


Joined: 13 May 2006
Posts: 17

PostPosted: Fri Jun 23, 2006 4:20 pm
Reply with quote

hi,

I need a alert when the DB2 log is Full ie if the log is 02 of 20 then i need a alert to my mail box.

Now i have the JCl to send the mail. i need only how to check the condition of the DB2 logs in a JCL


can any one please guide me to do this
Back to top
View user's profile Send private message
anamikak

New User


Joined: 10 May 2006
Posts: 64
Location: Singapore

PostPosted: Sat Jun 24, 2006 12:37 am
Reply with quote

1. In your ISPF skeleton data set write the JCL to send mail and include the skeleton JCL in your REXX program

2. IN the main rexx program invoke Db2 services and display the log. collect the response in a stem variable and read it till your are able to get % character. ( the reason for this is that , the log message would generally say something like 'db2.log. dataset' is x% FULL)

3. try to seaprate out x

4. when x is greater than say a Y percentage , submit the JCL which sends mail through REXX comands.

Anamika
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Setting up alert for high priority em... General Talk & Fun Stuff 3
No new posts How to send a file to a particular ma... JCL & VSAM 1
No new posts Dataset Space Alert JCL & VSAM 9
No new posts DFHSM Alert related to virtual lib JCL & VSAM 10
No new posts Red Alert: Potential data loss in a D... DB2 0
Search our Forums:

Back to Top