End host servers

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.

Note: If you use the ENDHOSTSVR command to end a particular daemon that is not active, you get a diagnostic message. Use ENDHOSTSVR SERVER(*ALL) if you want to end all active daemons. You do not see a diagnostic message with the *ALL value.

ENDHOSTSVR command values:

Server type

*ALL
Ends the server daemons and the server mapper daemon if active. If used, the system allows no other special values.
*CENTRAL
Ends the central server daemon in QSYSWRK subsystem.
*DATABASE
Ends the database server daemon in QSERVER subsystem.
*DTAQ
Ends the data queue server daemon in QSYSWRK subsystem.
*FILE
Ends the file server daemon in QSERVER subsystem.
*NETPRT
Ends the network print server daemon in QSYSWRK subsystem.
*RMTCMD
Ends the remote command and distributed program call server daemon in QSYSWRK subsystem.
*SIGNON
Ends the signon server daemon in QSYSWRK subsystem.
*SVRMAP
Ends the server mapper daemon in QSYSWRK subsystem.

End active connections

(This optional parameter specifies whether the active connections for the specified servers will be ended.)

Single Values:

*NONE
No active connections will be ended.

Other Values:

*DATABASE
The active connections being serviced by the QZDASOINIT and QZDASSINIT server jobs will be ended. The server jobs that are servicing these connections will also be ended.
*FILE
The active connections being serviced by the QPWFSERVSO and QPWFSERVSS server jobs will be ended. The server jobs servicing these connections will also be ended.

Here are some ENDHOSTSVR examples.