CEMT lets you display and change the status of resources, including programs, transactions, data sets, queues, and terminals.

You’ll use CEMT in a CICS test environment often to refresh a copy of a program, allocate and deallocate a file, or just inquire on the status of a given resource. In addition, you use CEMT to shut down a CICS system.

CICS: CEBR, CEMT, CECI Commands -Part-1

Operation
To invoke CEMT, you enter the trans-id CEMT with or without a command. Once you’ve started CEMT, you can enter commands in the command line (at the top of the display) or you can overtype data directly on the data display.

If you don’t enter complete information for a CEMT command, CEMT prompts you for the additional information, showing all of the valid choices.

You can abbreviate any CEMT command option with as few characters as are required to make the abbreviation unique within the context. For the keyword PERFORM, for example, you can enter P, PE, PER, PERF, and so on. However, if another keyword at the same level begins with the letter P, you would have to use at least two letters in the abbreviation.

The three basic CEMT commands you’re likely to use are INQUIRE (usually abbreviated INQ), SET, and PERFORM.

INQIRE Command

CEMT INQUIRE FILE [(name)]
PROGRAM [(name)]
QUEUE [(name)]
TASK [(number)]
TERMINAL [(term-id)]
TRANSACTION [(trans-id)]

SET Command

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

SHUTDOWN Command

CEMT PERFORM SHUTDOWN [ IMMEDIATE ]

Advertisements