JES2 Shutdown Hangs Due to MTK Hooks with SUB=MSTR OPS/MVS
search cancel

JES2 Shutdown Hangs Due to MTK Hooks with SUB=MSTR OPS/MVS

book

Article ID: 452741

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

STOPJES2 hangs during system shutdown when the MTK task is running with the SUB=MSTR parameter.
This occurs because the MTK task, when started before JES2, maintains hooks into JES2 that prevent a clean shutdown.

Environment

  • OPS/MVS Event Management & Automation
  • z/OS

Cause

The MTK task is submitted before JES2 with the SUB=MSTR parameter. During startup, the MTK task acquires hooks into JES2. Because these hooks are not released, JES2 remains in a wait state during the STOPJES2 process.

Resolution

This issue is fixed in PTF LT18352.

A 'PURGE JESID' command has been added to release the JES ID and hooks, allowing JES2 to shut down while the MTK remains running. The command returns one of the following:

  • N12621 REGION NOT RUNNING SUB=MSTR
  • N12622 JES ID RELEASE PROCESSED