To end Host servers, use the ENDHOSTSVR CL command.
This command ends the host server daemons and the server mapper daemon. If a server daemon ends while servers of that type are connected to client applications, the server jobs remain active until communication with the client application ends, unless the optional ENDACTCNN parameter is specified. Subsequent connection requests from the client application to that server fail until the server daemon starts again.
If the server mapper daemon ends, any existing client connections to server jobs are unaffected. Subsequent requests from a client application to connect to the server mapper fail until the server mapper starts again.
The ENDACTCNN parameter may be specified in order to end active connections to the *DATABASE and *FILE servers. This will cause the server jobs that are servicing these connections to end. The active connections can only be ended if the corresponding daemon job is also being ended. If the *DATABASE keyword is specified, the QZDASOINIT and QZDASSINIT jobs with active connections will be ended. If the *FILE keyword is specified, the QPWFSERVSO and QPWFSERVSS jobs with active connections will be ended.
ENDHOSTSVR command values:
Server type
End active connections
(This optional parameter specifies whether the active connections for the specified servers will be ended.)
Single Values:
Other Values:
Here are some ENDHOSTSVR examples.