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.
Advertisements
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 Name | What You can do for this Resource |
---|---|
FILE | Retrieves or sets data set information. If you omit the file name, CEMT displays a list of all data sets. |
PROGRAM | Retrieves or sets program information. If you omit the program name, CEMT displays a list of all programs. |
QUEUE | Retrieves or sets transient data information. If you omit the destination name, CEMT displays a list of all transient data queues. |
TASK | Retrieves or sets task information. If you omit the task identifier, CEMT displays a list of all active tasks. |
TERMINAL | Retrieves or sets terminal information. If you omit the terminal-id, CEMT displays a list of all terminals. |
TRANSACTION | Retrieves or sets transaction information. If you omit the trans-id, CEMT displays a list of all transactions. |
ENABLED | Changes the status of the resource to ENABLED or DISABLED. |
DISABLED | Disabling 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. |
OPEN | Changes the status of a data set or queue to OPEN or CLOSED. A |
CLOSED | data set must be closed before you can update it outside of the CICS environment. |
NEWCOPY | Establishes 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. |
DPLSUBSET | Specifies 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. |
TRIGGER | Changes the trigger level for an ATI task associated with a transient data queue. |
INSERVICE OUTSERVICE | Specifies whether or not the terminal is available for use. |
PURGE | Cancels a running task: For SET TASK, cancels the task indicated |
FORCEPURGE | by 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. |
PAGEABLE | Specifies how a terminal handles multiple page messages. If |
AUTOPAGEABLE | PAGEABLE 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. |
ATI | ATI means that the terminal can be used for transactions that are |
NOATI | invoked via Automatic Transaction Initiation (ATI) facilities or for Intersystem Communication (ISC) transactions. NOATI means that the terminal can not be used for those transactions. |
SHUTDOWN | Terminates the CICS system. |
IMMEDIATE | Specifies 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.