DISCARD TRANCLASS

Remove a transaction class definition.

Syntax

Warning: System commands are powerful as they provide information about the state of the system and allow changes to be made to it. System commands should be used only by authorized applications and users.

Activate security checks on commands by specifying the XCMD system initialization parameter and by ensuring that command security checking is active for the transaction (either by specifying CMDSEC(YES) on the TRANSACTION resource definition or by specifying ALWAYS on the CMDSEC system initialization parameter).

DISCARD TRANCLASS

Read syntax diagramSkip visual syntax diagramDISCARD TRANCLASS( data-value)

Conditions: INVREQ, NOTAUTH, TCIDERR

NOHANDLE, RESP, and RESP2 are common options that can be added to all EXEC CICS commands to process error conditions. They are not explicitly included in the command syntax diagram and option descriptions. For information about these common options and EXEC CICS command syntax, see EXEC CICS command format and programming considerations.

This command is threadsafe.

Description

The DISCARD TRANCLASS command removes the definition of a transaction class from the local CICS® system. A transaction class cannot be removed while any TRANSACTION definitions belong to it.

See Discarding resource definitions for general information about discards.

Options

TRANCLASS(data-value)
specifies the 8-character name of the transaction class that is to be removed.

In earlier releases of CICS, transaction classes were numbered from 1 through 10 rather than named, as they are now, and class definitions were implicit rather than explicit. For compatibility, CICS supplies definitions for the numbered classes, named ‘DFHTCLnn’, where nn is the 2-digit class number. You can discard a numbered class by using the associated name for the TRANCLASS value (DFHTCL01 for class 1, for example).

Conditions

INVREQ
RESP2 values:
2
The TRANCLASS definition is in use.
12
The transaction class cannot be discarded because installed transactions belong to it.
NOTAUTH
RESP2 values:
100
The user associated with the issuing task is not authorized to use this command.
TCIDERR
RESP2 values:
1
The transaction class cannot be found.