---
title: "CICS CEMT SET – How to Use Correctly"
description: "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. https://..."
url: https://srinimf.com/2021/05/31/cics-cemt-resources-that-you-can-change-status/
date: 2021-05-31
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2021/05/pexels-photo-6331260.jpeg?fit=1880%2C1255&ssl=1
categories: ["CICS"]
tags: ["CEMT Control Resources", "CICS CEMT"]
type: post
lang: en
---

# CICS CEMT SET – How to Use Correctly

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](https://srinimf.com/2017/12/20/bms-mapset-logic-to-create-html-template/), Task, Terminal, and Transaction.

Related[CEMT INQUIRE TRANSACTION](https://srinimf.com/2014/05/10/cemt-inquire-transaction/)

## [CICS CEMT](https://srinimf.com/2015/07/29/cics-cemt-ceci-cebr-commands-part2-of-3/) Command Examples

### You can use CEMT to set the 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 }
```

Advertisements

## 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

- [CICS-CEMT Commands (3 of 3)](https://srinimf.com/2013/03/04/cics-cemt-commands-3-of-3/)DateMarch 4, 2013
- [CICS: CEMT, CECI, CEBR Commands Part(2 of 3)](https://srinimf.com/2015/07/29/cics-cemt-ceci-cebr-commands-part2-of-3/)DateJuly 29, 2015
- [9 CICS Built-in Transactions: How to Use Them](https://srinimf.com/2017/01/17/9-the-best-cics-transactions-mostly-used-in-all-projects/)DateJanuary 17, 2017

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2021%2F05%2F31%2Fcics-cemt-resources-that-you-can-change-status%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2021%2F05%2Fpexels-photo-6331260.jpeg%3Ffit%3D1200%252C801%26ssl%3D1&description=CICS%20CEMT%20SET%20-%20How%20to%20Use%20Correctly)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2021/05/31/cics-cemt-resources-that-you-can-change-status/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2021/05/31/cics-cemt-resources-that-you-can-change-status/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2021/05/31/cics-cemt-resources-that-you-can-change-status/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2021/05/31/cics-cemt-resources-that-you-can-change-status/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20CICS%20CEMT%20SET%20-%20How%20to%20Use%20Correctly&body=https%3A%2F%2Fsrinimf.com%2F2021%2F05%2F31%2Fcics-cemt-resources-that-you-can-change-status%2F&share=email)
-

### Like this:

Like Loading…
