Force JES2 to go down

Sometimes JES2 will not terminate

If for whatever reason JES2 does not want to shut down, and probably the following message shows up:

$HASP000 JES2 NOT DORMANT -- SYSTEM NOW DRAINING

The reason for this might vary. It could be that (for example) a printer still has data to process.
Try to gather more information with:

/$DU

Then find out which device is trying to drain and cancel this process. e.g.

/$C PRINTER3

Now we should be able to finish JES2.

/$PJES2

Force JES2 down (sometimes needed)

When all else fails we force JES2 to ABEND with the following command:

/$PJES2,ABEND

Now a numbered request will appear:

*nn $HASP098 ENTER TERMINATION OPTION

and we answer:

/R 01,PURGE

that should do the trick…