How to PURGE the task using OPS/MVS MSG rule
search cancel

How to PURGE the task using OPS/MVS MSG rule

book

Article ID: 255532

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Is there a simple way to add a command "$ P jq,jm=xxxxx" where xxxxx is the name of the job that floods the spool when the $hasp050 message occurs?   

Environment

Release : 13.5

Resolution

Below is a sample that can be used. 

)MSG $HASP050                                           
)PROC                                                 
/* purge jobs with a specific mask when JES2 spool alerts occur, replace xxxxx with jobname*/                                               
address oper                                           
'$PJ(*),JM=xxxxx'