Canceling clients automatically
Typically, persistent socket clients remain connected to IBM IMS Connect, even when they are idle and no longer required. Manually removing persistent idle clients can be a slow process, particularly for users who have hundreds or thousands of active persistent clients connected at one time.
With the Auto cancel clients option on the IMS Connect Options panel, you can now cancel idle clients automatically.
For each client, you can define a rule in the rules table of the IMS/IMS Connect PROCLIB data set to specify the following information:
Whether to cancel the client when idle or keep it active until the connection closes
- For a client identified for cancellation, the wait seconds (waiting period, in seconds) after which Energizer can cancel the client
 
After you create cancellation rules and activate Auto cancel clients option, the cancellation process runs every 30 minutes (1,800 seconds) by default. This frequency is called the auto cancel frequency.
The auto cancel cycle is the entire process of canceling the clients. You can set the cycle for a client during initialization or RELOAD functions. During the cycle, Energizer issues the IBM z/OS cancel command for open socket connections that match the cancellation criteria in the rules table.

In addition to simplifying client removal, the Auto cancel clients option allows you to connect new or required clients more frequently.
If IBM's IDLETO parameter is defined, the process with lower wait seconds takes priority to automatically cancel the open socket connections. The IDLETO parameter is coded in the TCP/IP statement in the IMS Connect configuration member.
BMC recommends to use the Auto cancel clients option as you can define auto cancel rules for every client and port number.
This section contains the following procedures for automatically canceling clients: