CEMT
 CEMT master_term_cmd 
CEMT executes a CICS master terminal command from REXX.
Operands
master_term_cmd
specifies a command string passed as input to the CEMT transaction program.
Return Codes
nspecifies the return code passed back by CICS if an error is detected
0Normal return
-101 Invalid command
Any warning or error messages are placed in the variable CEMTTOUT.The results of the execution, if any,
are placed in the variable CEMTEOUT. The maximum length returned in CEMTEOUTis approximately
28K bytes. Each variable has the following format:
vBinary halfword containing inclusive length of field.
vBinary halfword containing the number of messages produced.
vBinary halfword containing the highest message-severity: 0and 4continue to execution; 8and 12 do not
continue to execution.
vVariable-length data containing:
For CEMTTOUT: messages produced from translation stage of command
For CEMTEOUT: messages produced from execution stage of command
The format of this data is not guaranteed from release to release, but it is the same as that displayed by
CEMT.
Example
'CEMT SET PROGRAM(XYZ) NEWCOPY'
This example shows a CICS command passed to the CEMT transaction program for execution.
Commands
324 CICS TS for VSE/ESA: REXX Guide