When any user is trying to start the task and task comes up the count in SSM#RSTCNT still shows the old value and because of this OPS/MVS is not able to restart the task in future and we are getting message as below:
OPS7944O STCTBL.TEST FAILED. POLICY AUTO RESTART ATTEMPTS OF 1 EXCEEDED
Release : 14.0
Component : OPS/MVS
This is working as designed. The restart counter is only reset in 2 situations:
1) When the resource reaches the DOWN_DOWN state (normal shutdown)
2) When the number of attempts to restart reaches maximum
If the counter was reset when the task reaches the state UP_UP there could be a loop as a task can reach UP_UP and fail immediately. This would cause repetitive attempts to restart it.