When stopping CA 7 three commands need to be issued to properly end the started task:
/F CA7stc,/LOGON MASTER
/F CA7stc,/SHUTDOWN,Z3
/F CA7stc,/SHUTDOWN,Z3
Release : 13.5
Component : OPS/MVS
Using the SSMCMDS rule to issue multiple command seems to be the solution:
RULE("SSMCMDS &SSM!RESNAME &DESIRED_STATE {MODIFY &JOBNAME,/LOGON MASTER} 5 {MODIFY &JOBNAME,/SHUTDOWN,Z3} 5 {MODIFY &JOBNAME,/SHUTDOWN,Z3}")
If using SSMV3/Policy Manager an action as below can be created:
SSMCMDS Action Edit----------- sysid -- O P S V I E W ---------- Subsystem OPSx
Resource Name: CA7stc Type: CA7ONLN Jobname: CA7stc
Current Action Text: RULE("SSMCMDS &SSM!RESNAME &DESIRED_STATE {MODIF +
* Required field
Enter or update z/OS commands and interval values
* z/OS command 1: MODIFY CA7stc,/LOGON MASTER +
* interval 1: 5
* z/OS command 2: MODIFY CA7stc,/SHUTDOWN,Z3 +
interval 2: 5
z/OS command 3: MODIFY CA7stc,/SHUTDOWN,Z3 +