CICS CEMT Resources That You Can Change Status

CEMT is Master Terminal Transaction in CICS. With the CEMT transaction, you can change the status for various resources such as Program, Mapset, File, Queue, Task, Terminal, and Transaction.

CICS CEMT Command Examples

You can use CEMT to set File. Program, Queue, Task, Terminal and Transaction.

CEMT SET   FILE(name)
         { ENABLED | DISABLED }
         { OPEN | CLOSED } 

CEMT SET   PROGRAM(name)
         { ENABLED | DISABLED }
         [ NEWCOPY ] 
         [ DPLSUBSET ]

CEMT SET   QUEUE(name)
         { ENABLED | DISABLED }
         { OPEN | CLOSED } 
         [ TRIGGER(number) ] 

CEMT SET   TASK(number) 
         { PURGE | FORCEPURGE } 

CEMT SET   TERMINAL(term-id)
         { INSERVICE | OUTSERVICE } 
         { PURGE | FORCEPURGE }
         { PAGEABLE | AUTOPAGEABLE }
         { ATI | NOATI } 

CEMT SET   TRANSACTION(trans-id)
         { ENABLED | DISABLED }

Resources List

Resource NameWhat You can do for this Resource
FILERetrieves or sets data set information. If you omit the file name, CEMT displays a list of all data sets.
PROGRAMRetrieves or sets program information. If you omit the program name, CEMT displays a list of all programs.
QUEUERetrieves or sets transient data information. If you omit the destination name, CEMT displays a list of all transient data queues.
TASKRetrieves or sets task information. If you omit the task identifier, CEMT displays a list of all active tasks.
TERMINALRetrieves or sets terminal information. If you omit the terminal-id, CEMT displays a list of all terminals.
TRANSACTIONRetrieves or sets transaction information. If you omit the trans-id, CEMT displays a list of all transactions.
ENABLEDChanges the status of the resource to ENABLED or DISABLED.
DISABLEDDisabling a resource is often a good way to get out of a processing loop. For example, if your terminal is tied up by a pseudo-conversational transaction that keeps restarting itself, simply disable the transaction from another terminal.
OPENChanges the status of a data set or queue to OPEN or CLOSED. A
CLOSEDdata set must be closed before you can update it outside of the CICS environment.
NEWCOPYEstablishes a new copy of a program or mapset. You should issue CEMT SET PROGRAM(name) NEWCOPY each time you recompile or reassemble a program or mapset.
DPLSUBSETSpecifies that a program run in a local CICS region is restricted to the Distributed Link Program API subset. In this mode, a program isn’t allowed to issue any CICS commands that access a terminal, which is useful for testing business logic programs.
TRIGGERChanges the trigger level for an ATI task associated with a transient data queue.
INSERVICE OUTSERVICESpecifies whether or not the terminal is available for use.
PURGECancels a running task: For SET TASK, cancels the task indicated
FORCEPURGEby the task identifier; for SET TERMINAL, cancels the task associated with the terminal. PURGE cancels the task only if CICS can ensure system and data integrity; FORCEPURGE cancels a task without regard to integrity. Always try PURGE first.
PAGEABLESpecifies how a terminal handles multiple page messages. If
AUTOPAGEABLEPAGEABLE is specified, the operator must retrieve message pages with the CSPG transaction; if AUTOPAGEABLE is specified, message pages are delivered one after another. PAGEABLE is usually specified for display devices, and AUTOPAGEABLE is usually specified for printer devices.
ATIATI means that the terminal can be used for transactions that are
NOATIinvoked via Automatic Transaction Initiation (ATI) facilities or for Intersystem Communication (ISC) transactions. NOATI means that the terminal can not be used for those transactions.
SHUTDOWNTerminates the CICS system.
IMMEDIATESpecifies that CICS should be terminated immediately, even if there are tasks still running. If you omit IMMEDIATE, CICS waits until any active tasks are completed.

Related Posts

Get new content delivered directly to your inbox.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.