Easyrule generates wrong code for CMD rules with conditions
search cancel

Easyrule generates wrong code for CMD rules with conditions

book

Article ID: 249020

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

When a condition is used in Easyrule, it is using a wrong variable name.
It first sets the variable "CT" with the command text and later uses the variable "EasyruleCmdText".
For example:

)CMD  MODIFY                                                             
)PROC                                                                    
/*--------------------------------------------------------------------*/ 
/* The following code is executed each time the rule is fired.        */ 
/*--------------------------------------------------------------------*/ 
  /*------------------------------------------------------------------*/ 
  /* Create a REXX variable containing the command text with the      */ 
  /* commas replaced by blanks for use by the WORD function.          */ 
  /*------------------------------------------------------------------*/ 
  CT = TRANSLATE(CMD.TEXT,' ',',')                                       
     /*---------------------------------------------------------------*/ 
     /* Command text conditions.                                      */ 
     /*---------------------------------------------------------------*/ 
  if  (WORD(EasyRuleCmdText,2) = "CICS"),                                
    then do                                                              

Environment

Release : 14.0

Component : OPS/MVS

Resolution

PTF LU07158 is the solution

Link to download LU07158