How to: automatically cycle one of a pair of started tasks in some cases
search cancel

How to: automatically cycle one of a pair of started tasks in some cases

book

Article ID: 137243

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Given a pair of started tasks, if one abnormally terminates we need to recycle the other so that the function works.  Is there a simple way to automatically do that while preserving the normal behavior when we shut down a system? 

Environment

Release : 13.5

Component : OPS/MVS

Resolution

This suggestion that requires the implementation of the FCYCLE function of the SSMCNTL rule. Check the comments section of the SSMCNTL rule in the CCLXRULM library for the required steps to implement the FCYCLE function.

The solution is to create specific FAILED_UP actions in the action table for the 2 tasks. The delivered FAILED_UP action has the following action text: 

RULE("SSMRSTRT &SSM!RESNAME &SSM#RESTARTS &SSM#RSTCNT")

 Let's suppose the tasks are STC1 and STC2. For the first task duplicate the current FAILED_UP entry and set STC1 as ACTION_RES_TYPE and include a new action to recycle STC2. 


The columns would look like: 

 ACTION_RES_TYPE STC1 action_text RULE("SSMRSTRT &SSM!RESNAME &SSM#RESTARTS &SSM#RSTCNT");MVSCMD("SSM FCYCLE JOB=STC2") 


 A similar entry would have to be created for STC2 changing the FCYCLE command to STC1 as the second action.