End TCP/IP Server (ENDTCPSVR) CL command

The End TCP/IP Server (ENDTCPSVR) command ends the DDM server.

If the DDM listener is ended, and there are associated server jobs that have active connections to client applications, the server jobs will remain active until communication with the client application is ended. Subsequent connection requests from the client application will fail, however, until the listener is started again.

End TCP/IP Server command restrictions

If the End TCP/IP Server command is used to end the DDM listener when it is not active, a diagnostic message will be issued. This same diagnostic message will not be sent if the listener is not active when an ENDTCPSVR SERVER(*ALL) command is issued.

Examples: End TCP/IP Server (ENDTCPSVR) command

These examples demonstrate using the End TCP/IP server (ENDTCPSVR) CL command.

This command ends all TCP/IP servers.

ENDTCPSVR *ALL

This command ends the DDM server.

ENDTCPSVR SERVER(*DDM)