Summary of writing execs for different address spaces

Table 1 summarizes the REXX keyword instructions, built- in functions, TSO/E external functions, TSO/E REXX commands, and other services you can use for execs that run in TSO/E and non-TSO/E address spaces. An X in the TSO/E or non-TSO/E columns indicates that the entry can be used in REXX execs that run in that address space.

You can use the TSO/E environment service, IKJTSOEV, to create a TSO/E environment in a non-TSO/E address space. If you run a REXX exec in the TSO/E environment you created, the exec can contain TSO/E commands, external functions, and services that an exec running in a TSO/E address space can use. For more information about the TSO/E environment service and the different considerations for running REXX execs within the environment, see z/OS TSO/E Programming Services.

Table 1. Summary of using instructions, functions, commands, and services
Instruction, function, command, service TSO/E Non-TSO/E
Keyword instructions (see Keyword instructions) X X
Built-in functions (see Built-in functions) X X
TSO/E external functions (see TSO/E external functions)
GETMSG X  
LISTDSI X  
MSG X  
OUTTRAP X  
PROMPT X  
SETLANG X X
STORAGE X X
SYSDSN X  
SYSVAR X  
TSO/E REXX commands (see TSO/E REXX commands)
DELSTACK X X
DROPBUF X X
EXECIO X X
EXECUTIL X  
HE (from attention mode only) X  
HI (from attention mode only) X  
HT (from attention mode only) X  
MAKEBUF X X
NEWSTACK X X
QBUF X X
QELEM X X
QSTACK X X
RT (from attention mode only) X  
SUBCOM X X
TE X X
TS X X
Miscellaneous services
Invoking another exec X X
Linking to programs X X
Attaching programs X X
ISPF services X  
TSO/E commands, such as ALLOCATE and PRINTDS X  
TSO/E service routines, such as DAIR and IKJPARS X  
TSO/E REXX programming services, such as IRXJCL, IRXEXEC, and IRXEXCOM (see TSO/E REXX programming services) X X
Interacting with TSO/E CLISTs X  
Issuing MVS™ system and subsystem commands during an extended MCS console session X  
SAA CPI Communications calls X X
APPC/MVS calls X X