End CICS (ENDCICS)

Where allowed to run:
  • Batch job (*BATCH)
  • Interactive job (*INTERACT)
  • Batch program (*BPGM)
  • Interactive program (*IPGM)
  • Batch REXX procedure (*BREXX)
  • Interactive REXX procedure (*IREXX)
  • Using QCMDEXEC, QCAEXEC, or QCAPCMD API (*EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The End CICS (ENDCICS) command will shut down a CICS control region and specifies what happens to active work being processed by that CICS control region.

All associated CICS shells (user or batch) must be shut down before the CICS control region can complete the shut down. The CICS user shells are informed of the involuntary shut down. Refer to the iSeries ENDCICSUSR CL command in order to shut down a CICS user shell without shutting down the CICS control region.

No new CICS shells can be started, that would be associated with the CICS control region being shut down, after this command is executed.

Top

Parameters

Keyword Description Choices Notes
CTLRGN Control region Communications name, CICS Optional, Positional 1
OPTION How to end *CNTRLD, *IMMED Optional, Positional 2
DELAY Delay time, if *CNTRLD 1-99999, *NOLIMIT Optional, Positional 3
Top

Control region (CTLRGN)

The name of the CICS control region to be shut down. This can be obtained from your CICS System Administrator. The name of the CICS control region is also known as the CICS SYSID.

Top

How to end (OPTION)

Identifies the method used to shut down the CICS control region.

The possible OPTION values are:

Top

Delay time, if *CNTRLD (DELAY)

Indicates the amount of time (in seconds) that is allowed to complete the controlled CICS control region shut down. If this amount of time is exceeded and the CICS control region shut down is not complete, all associated CICS shells associated with the CICS control region are ended.

The possible DELAY values are:

Top

Examples

None
Top

Error messages

Unknown
Top