TERMINATE

Terminate all API processing on all active threads.

Read syntax diagramSkip visual syntax diagramTERMINATERESPONSE( data-ref)REASON (data-ref)

Description

This command terminates all API processing on all active threads created by the CICS® or MVS™ task that issues the command.
  • Issuing TERMINATE is equivalent to issuing the DISCONNECT command for each active thread individually.
  • Any resources that are associated with the thread are released, including result sets, filters, views, diagnostic data, and outstanding asynchronous requests.

Related commands

CONNECT, DISCONNECT

Options

REASON(data-ref)
Names a variable to receive the fullword reason value returned by this command.
RESPONSE(data-ref)
Names a variable to receive the fullword response value returned by this command.

Conditions

The following is a list of the RESPONSE values that can be returned by the TERMINATE command. The description of each RESPONSE includes a list of associated REASON values, if appropriate.
OK
The command completed processing successfully.
ENVIRONERROR
An environment error occurred for one of the following reasons:
NOSERVICE
The application stub program could not load the API service module.
NOSTORAGE
The application stub program could not obtain the necessary storage in the address space where the processing thread is running.
FAILED
The command failed for one of the following reasons:
ABENDED
Command processing abended.
EXCEPTION
Command processing encountered an exceptional condition.