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.
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.
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=MSTRN12622 JES ID RELEASE PROCESSED