4.7.7.2 Stopping a Local Service

To stop a local service, use the STOP SERVICE command with the IMSID and NAME parameters. In this case, the NAME parameter only specifies the remote name, rather than the fully qualified (local name, remote name) syntax. Use the IMMED=YES parameter to stop the service immediately without waiting for requests in progress to complete. Outstanding requests are sent an error message. Use the IMMED=NO to allow the requests to complete processing. While waiting, the gateway does not accept any new requests. IMMED=NO is the default. The example in the listing stops ECHO on the IMS1 host.

Listing 4‑23 STOP SERVICE Command (Local Service) Example

STOP SERVICE, IMSID=IMS1, NAME=ECHO