Needs to stop monitoring of MVS-REQ-JOBS for 15 minute period

Document ID : KB000009894
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Customer needs to watch for a job being up EXCEPT between 5:25 and 5:45 Monday, when it is supposed to be down and doesn't want the MVS_REQ_JOBS event to be monitored during that interval.

Background:

Customer brings down a monitored job which must be available 7X 24 except during a 15 minute interval when the job is not running for a recycle of the STC/JOB.

Environment:
z/OS
Instructions:

To DISABLE the Event Scheduler MVS-REQ-JOBS you will need to create a new member in your CAPTURE Library.  Let us call the MEMBER DISREQJB.  Here are the contents:

  

CONTROL  NOFLUSH                             

CAPPARMS DESCR C' SHUTDOWN OF MVS-REQ-JOBS  '

                                             

SCHEDULE ;CAPTURE                            

SELECT NAME EQ MVS-REQ-JOBS                  

LINECMD DIS 2                                

CAPTURE                                      

                                             

LISTLOG                                      

CAPTURE                                      

 

Next SCHEDULE the Event Capture to run prior to your shutdown time for time which will precede the shutdown.

 

Once the JOB/STC is brought back up to enable the MVS-REQ-JOBS create another CAPTURE member.  Let us call it ENAREQJB and here are its contents:

 

CONTROL  NOFLUSH                             

CAPPARMS DESCR C' ENABLE OF MVS-REQ-JOBS  '

                                             

SCHEDULE ;CAPTURE                            

SELECT NAME EQ MVS-REQ-JOBS                  

LINECMD ENA 2                                

CAPTURE                                      

                                             

LISTLOG                                      

CAPTURE

 

After successful execution of each of these Event Capture members if you look at the contents of them on the CAPLIST display you should see in the LISTLOG event the following: 

GSV2304I Timer event MVS-REQ-JOBS has been disabled 
and the subsequent message on the enable: 
GSV2304I Timer event MVS-REQ-JOBS has been enabled 

Additional Information:

Requires SCHEDULE update to execute the jobs DISREQJB and ENAREQJB Event Captures.