4.7.4.3 Stopping a Gateway

To stop a gateway, use the STOP GATEWAY command with the LMID parameter. Use the IMMED=YES parameter to stop the gateway immediately without waiting for requests in progress to complete. Outstanding requests are sent an error message and all gateway connections are closed. Use the IMMED=NO to allow the gateway to complete transaction processing and then shutdown. While waiting, the gateway does not accept any new requests. IMMED=NO is the default. The example in the listing below stops the OS3901 gateway after transaction processing completes.

Listing 4‑12 STOP GATEWAY Command Example

STOP GATEWAY, LMID=OS3901