Need to set up a job/Rexx program to disable and enable rules. How to enable rules in batch?
search cancel

Need to set up a job/Rexx program to disable and enable rules. How to enable rules in batch?

book

Article ID: 248563

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Instead of manually disabling and enabling the rules on PROD, NFPB and NFPC, I want to set up a job/Rexx program to disable and enable rules.

 

 

Environment

Release : 14.0

Component : OPS/MVS

Resolution

One of the possible options is using the sample rule we provide in the CCLXRULS member OPSAOF. 

  1. Copy the member OPSAOF from the CCLXRULS library to an active ruleset
  2. Enable and auto-enable this rule
  3. Use the JCL below to issue the OPSAOF command:
//STEP2 EXEC PGM=IKJEFT01                           
//STEPLIB  DD DISP=SHR,DSN=CAOPSMVS.OPS140.CCLXLOAD 
//SYSPRINT DD SYSOUT=*                              
//OUTPUT   DD SYSOUT=*                              
//SYSTSPRT DD SYSOUT=*                              
//SYSTSIN DD *                                      
OPSCMD OPSAOF ENABLE ruleset.rule1 
OPSCMD OPSAOF ENABLE ruleset.rule2
and so on                  
/*