Have written code to create a dynamic TOD rule that will fire five (5) times at 30 seconds intervals. Should automatically disable the dynamic TOD rule when var value reaches or exceeds a set value. Am experiencing issues with getting this to consistently happen, disabling of the dynamic TOD rule. Out of 10+ times trying, only once was it successful. I have put in this description a portion of the code and fragments from the OPSLOG, that shows it being both unsuccessful and successful. Have added an OPSWAIT and moved the line that issues the DISABLE command earlier in the code, thinking that this was a timing issue, but still unsuccessful except for that one time. Anyone have any suggestions, or has also experienced this issue and could provide any tips?
QUEUE "IF TEMP >= "STC_THRESHOLD" THEN DO"
QUEUE " RTVL = OPSVALUE('GLVTEMP1.'LOC'.IPL','U','UP AT 'CRNT)"
QUEUE " RTVL = OPSVALUE('GLVTEMP1.'LOC'.STCOUNT','R')"
QUEUE " ADDRESS AOF 'DISABLE *DYNAMIC.STCTHRES'"
QUEUE "END"
11:48:57 0025 OPS4320H OPSMAIN OPSS *LOCAL* AOF verb DISABLE command DISABLE *DYNAMIC.STCTHRES
11:48:57 0025 OPS0997T *-* 17:END
11:48:57 0025 OPS3900H RULE *DYNAMIC.STCTHRES FOR TOD 2018/04/19 11:49:27
11:48:57 0025 OPS3909I RULE *DYNAMIC.STCTHRES IS NOT ENABLED
13:26:15 0025 OPS4320H OPSMAIN OPSS *LOCAL* AOF verb DISABLE command DISABLE *DYNAMIC.STCTHRES
13:26:15 0025 OPS0997T *-* 17:END
13:26:15 0025 OPS3900H RULE *DYNAMIC.STCTHRES FOR TOD 2018/04/19 13:26:45 SET
13:26:15 0025 OPS3900H RULE *DYNAMIC.STCTHRES FOR TOD 2018/04/19 13:26:45 NOW DISABLED
13:33:42 0025 OPS4320H OPSMAIN OPSS *LOCAL* AOF verb DISABLE command DISABLE *DYNAMIC.STCTHRES
13:33:42 0025 OPS0997T *-* 18:END
13:33:42 0025 OPS3900H RULE *DYNAMIC.STCTHRES FOR TOD 2018/04/19 13:34:11
13:33:42 0025 OPS3909I RULE *DYNAMIC.STCTHRES IS NOT ENABLED