TSOEXEC command

Use the TSOEXEC command to invoke an authorized command from an unauthorized environment. For example, you can use TSOEXEC when in the Interactive System Productivity Facility (ISPF), which is an unauthorized environment, to invoke authorized commands such as TRANSMIT and RECEIVE.

Three CLIST control variables are related to the use of the TSOEXEC command:
  • &SYSABNCD contains the ABEND code.
  • &SYSABNRC contains the ABEND reason code.
  • &SYSCMDRC contains the command return code returned by the command most recently invoked by TSOEXEC.

For more information about these variables, see z/OS TSO/E CLISTs.

These variables are changed slightly when used in REXX execs. They are as follows:
  • SYSABNCD
  • SYSABNRC
  • SYSCMDRC
Note: Using TSOEXEC ISPSTART does not give a controlled environment. For information about controlled environments, see z/OS Security Server RACF Security Administrator's Guide.