End Host Server (ENDHOSTSVR)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The End Host Server (ENDHOSTSVR) command is used to end the optimized host server daemons. One or more server daemons can be ended and the server mapper daemon can be ended. Optionally, active connections to the *DATABASE and *FILE servers can be ended with this command.

If a server daemon is ended, and there are servers of that type that have active connections to client applications, the server jobs will remain active until communication with the client application is ended, unless the optional ENDACTCNN parameter is specified. Subsequent connection requests from the client application to that server daemon will fail however until the server daemon is started again.

If the server mapper daemon is ended, any existing client connections to the server jobs are unaffected. Subsequent requests from a client application to connect to the server mapper daemon (to obtain a server's port number) will fail however until the server mapper is started again.

A request to end *ALL host server daemons will end any active daemons.

The ENDACTCNN parameter may be specified in order to end active connections to the *DATABASE and *FILE servers. This will cause the server jobs which are servicing these connections to be ended. 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 which have active connections will be ended. If the *FILE keyword is specified, the QPWFSERVSO and QPWFSERVSS jobs which have active connections will be ended.

Error messages for ENDHOSTSVR

None

Top

Parameters

Keyword Description Choices Notes
SERVER Server type Single values: *ALL
Other values (up to 8 repetitions): *CENTRAL, *DATABASE, *DTAQ, *FILE, *NETPRT, *RMTCMD, *SIGNON, *SVRMAP
Required, Positional 1
ENDACTCNN End active connections Single values: *NONE
Other values (up to 2 repetitions): *DATABASE, *FILE
Optional, Positional 2
Top

Server type (SERVER)

Specifies the server daemons to be ended.

The possible values are:

*ALL
All of the server daemons and the server mapper daemon are ended.
*CENTRAL
The central server daemon in the QSYSWRK subsystem, if active, is ended.
*DATABASE
The database server daemon in the QSERVER subsystem, if active, is ended.
*DTAQ
The data queue server daemon in the QSYSWRK subsystem, if active, is ended.
*FILE
The file server daemon in the QSERVER subsystem, if active, is ended.
*NETPRT
The network print server daemon in the QSYSWRK subsystem, if active, is ended.
*RMTCMD
The remote command and distributed program call server daemon in the QSYSWRK subsystem, if active, is ended.
*SIGNON
The signon server daemon in the QSYSWRK subsystem, if active, is ended.
*SVRMAP
The server mapper daemon in the QSYSWRK subsystem, if active, is ended.
Top

End active connections (ENDACTCNN)

Specifies whether or not the active connections for the specified servers will be ended.

Single Value

*NONE:
No active connections will be ended.

Specific Server Values

*DATABASE:
The active connections being serviced by the QZDASOINIT and QZDASSINIT server jobs will be ended. The server jobs servicing these connections will 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 be ended.
Top

Examples

None
Top

Error messages

None

Top