Error enabling dynamic rule RC(42)
search cancel

Error enabling dynamic rule RC(42)

book

Article ID: 281208

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Getting RC(42) trying to enable a dynamic rule:

 address AOF                                              
  "Enable *DYNAMIC.tempname"   

OPS4320H OPSOSF   OPSS *LOCAL* AOF verb ENABLE     command ENABLE *DYNAMIC.tempname                  
OPS0997T +++     RC(42)      

Environment

OPS/MVS

Cause

Syntax error in the rule definition:

OPS1006I ERROR 6 COMPILING *DYNAMIC.tempname, LINE x: UNMATCHED "/*" OR QUOTE
...        
OPS3919E NO VALID RULE HEADER FOUND IN RULE *DYNAMIC.tempname  

Resolution

Always inspect the return code of ADDRESS AOF commands and if  RC is different from 0 read the EDQ to get more information about the error:

ADDRESS AOF                           
"ENABLE *DYNAMIC.tempname
IF RC <> 0 THEN                       
   DO QUEUED()                        
     PULL LINE                        
     SAY LINE                         
   END