To get JES2 to shutdown cleanly, you need to find exactly what is running on the system.
Here is an example of a clean shutdown. Sites may more address spaces to stop/pause in their environment.
The example is just to illustrate the purpose of this tecdoc:
$PI1-14 This shuts down all initiators
$plne10 NJE active on this line
c cts410t The next several commands stop any active jobs
P LDAPV14
-STOP DB2
P FTPD1
P OPSS
P ENF
P TCPIP
P TSO
Z NET,QUICK
F OMVS,SHUTDOWN This command will shutdown OMVS. This could be missing in some cases. Then You should see the following messages...
$HASP085 JES2 TERMINATION COMPLETE
IEF404I JES2 - ENDED - TIME=HH.MM.SS
Then you can shutdown TSS:
P TSS
and reply <z> to the message:
TSS9072I ** SELECT TYPE OF SHUTDOWN ** <I> TO IGNORE
TSS9072I <Z> END OF DAY; RE-IPL WILL BE REQUIRED
TSS9072A <T> TEMPORARY; MAY IMPACT THROUGHPUT