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
n specifies the return code passed back by CICS if an error is detected
0 Normal 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 CEMTEOUT is approximately
28K bytes. Each variable has the following format:
v Binary halfword containing inclusive length of field.
v Binary halfword containing the number of messages produced.
v Binary halfword containing the highest message-severity: 0 and 4 continue to execution; 8 and 12 do not
continue to execution.
v Variable-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